各位好, 我们线上有一个攻击溯源场景, 之前使用neo4j做的,因为是单机的,所以打算迁移到nebula上,neo4j的查询语句支持比较强,不知道nebulaGraph能不能实现
这是neo4j的一个语句
match path=(n1:server)-[]-(n2:event)-[]-(n4:attacker)
where n2.Id='asdfj6i391j7l0' and n2.time>=1610294400000 and n2.time<=1610380800000 and n2.pin='test'
OPTIONAL MATCH y=(n2)-[]-(n3:process) OPTIONAL MATCH x=(n3)--(n5:process) return n1, n2, n3, relationships(path) as r1,n4, relationships(y) as r2,n5,relationships(x) as r3 limit 100
一共是四种节点, server
, event
attacker
process
这个查询语句的意思是根据条件查询attacker(攻击者)通过event(事件)攻击server(主机),如果server有进程信息,就把进程信息查出来,返回每个节点信息和节点之间的关系
麻烦问一下这个语句用nebulaGraph可以实现吗 谢谢