Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Queries] Everything View #4

Open
randomuserid opened this issue Jul 17, 2024 · 0 comments
Open

[Queries] Everything View #4

randomuserid opened this issue Jul 17, 2024 · 0 comments

Comments

@randomuserid
Copy link
Member

randomuserid commented Jul 17, 2024

The everything view is an optional sort of hello world view where we show all the detections with little or no prioritization. The original query was this:

MATCH (n:ENTITY)-[r]->(m) where n.view = 1 and m.view = 1 return n,r,m

Somewhere around 6k alerts and 100 entities this stops working. It returns in neo4j but not in the web ui.

For now I changed it to to this which works ok;

MATCH (h:ENTITY)-[r]->() WHERE NOT type(r) IN ['AS_SOURCE', 'AS_DEST'] WITH h MATCH p=(h)-[r]->() RETURN p

Questions

  1. While this works, it is not making use of the views, and so may not be optimal.
  2. For some reason the source / dest relations are still there and I'm not sure if we need them or can prune them..we are precomputing entities prior to ingest now because this is hard in neo and simpler in Python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant