Skip to content

Commit

Permalink
fix: [feed-generator] Revert back the event initial search to use the…
Browse files Browse the repository at this point in the history
… index endpoint instead of RestSearch

Relying on RestSearch was offering more flexibility than index in terms of filtering options,
however, it might introduce a significant overhead potentially leading to timeout.
  • Loading branch information
mokaddem committed Nov 17, 2021
1 parent 93cff2e commit 820eb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/feed-generator/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def saveManifest(manifest):
if __name__ == '__main__':
misp = init()
try:
events = misp.search(metadata=True, limit=entries, **filters, pythonify=True)
events = misp.search_index(minimal=True, limit=entries, **filters, pythonify=False)
except Exception as e:
print(e)
sys.exit("Invalid response received from MISP.")
Expand Down

0 comments on commit 820eb77

Please sign in to comment.