You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an API endpoint to search and return Bro results by job UUID.
Idea I had is using something simple like TinyDB to store any job UUID as the db's primary key and the bro log path in path key or similar. A user could hit /search/<job_uuid> and get back the zipped logs from the job_logs_bro path or an JSON API error message if the job isn't found.
I started a test of this TinyDB and it works pretty OK for a quick starter. Expanding the TinyDB use further a tiny bit, adding an API route for /jobs/count (for example) and returning the number of all jobs analyzed would be trivial.
Add an API endpoint to search and return Bro results by job UUID.
Idea I had is using something simple like TinyDB to store any job UUID as the db's primary key and the bro log path in
pathkey or similar. A user could hit/search/<job_uuid>and get back the zipped logs from thejob_logs_bropath or an JSON API error message if the job isn't found.I started a test of this TinyDB and it works pretty OK for a quick starter. Expanding the TinyDB use further a tiny bit, adding an API route for
/jobs/count(for example) and returning the number of all jobs analyzed would be trivial.Is this something desired I can put in a PR for?