Add query example

pull/30/head
Raphaël Vinot 2016-10-28 14:13:57 -04:00
parent 81e3ce37af
commit bee1630e98
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,17 @@ from pymisp import MISPEvent
from keys import misp_url, misp_key
import argparse
"""
Sample Neo4J query:
MATCH ()-[r:has]->(n)
WITH n, count(r) as rel_cnt
WHERE rel_cnt > 5
MATCH (m)-[r:has]->(n)
RETURN m, n LIMIT 200;
"""
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Get all the events matching a value.')
parser.add_argument("-s", "--search", required=True, help="String to search.")