diff options
Diffstat (limited to 'src/soc_collector/soc_collector_cli.py')
-rw-r--r-- | src/soc_collector/soc_collector_cli.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/soc_collector/soc_collector_cli.py b/src/soc_collector/soc_collector_cli.py index 27df732..9f8c793 100644 --- a/src/soc_collector/soc_collector_cli.py +++ b/src/soc_collector/soc_collector_cli.py @@ -180,8 +180,9 @@ def main() -> None: info: Show info about the database, currently number of documents. search: json blog OR path to file. skip defaults to 0 and limit to 25. - '{"search": {"port": 111, "ip": "192.0.2.28"}, "skip": 0, "limit": 25}' OR ./search_data.json - '{"search": {"asn_country_code": "SE", "result": {"$exists": "cve_2015_0002"}}}' + '{"filter": {"port": 111, "ip": "192.0.2.28"}, "skip": 0, "limit": 25}' OR ./search_data.json + '{"filter": {"asn_country_code": "SE", "result": {"$exists": "cve_2015_0002"}}}' + '{"filter": {}}' get: key OR path to document using its "_id". 637162378c92893fff92bf7e OR ./data.json @@ -217,7 +218,7 @@ def main() -> None: case $prev in search) - COMPREPLY="'{\\"search\\": {\\"asn_country_code\\": \\"SE\\", \\"ip\\": \\"8.8.8.8\\"}}'" + COMPREPLY="'{\\"filter\\": {\\"asn_country_code\\": \\"SE\\", \\"ip\\": \\"192.0.2.28\\"}}'" return ;; esac |