Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Feature Request: Endpoint for searching past analyzed PCAPs #4

Open
deadbits opened this issue Dec 26, 2017 · 2 comments
Open

Feature Request: Endpoint for searching past analyzed PCAPs #4

deadbits opened this issue Dec 26, 2017 · 2 comments

Comments

@deadbits
Copy link

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.

Is this something desired I can put in a PR for?

@arollyson
Copy link
Contributor

I definitely like the idea, it has been on my personal todo list for awhile but never got around to implementing it.

You could probably get away with doing it without a DB too possibly if you were just concatenating the configured storage directory with the job UUID and just counting the folders in the dir on demand. But maybe a DB would be better in the long run, I haven't really given the implementation too much thought. Probably best to limit dependencies in any case.

@deadbits
Copy link
Author

deadbits commented Dec 27, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants