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
Found in Brim commit 1fae48f talking to zqd commit a2de891.
In this case I'm adopting the persona of a Zeek user that's trying to drag the contents of a Zeek log directory into the app. Zeek is known to generate a handful of not-Zeek-format-logs in such a directory (e.g. the conn-summary log and the stderr/stdout logs). As there's so many logs in the directory, it would be an excessive burden on the user for them to delete/unclick each of the "bad" ones before dragging the contents into Brim. Therefore it's important that Brim ingest what's good, be tolerant of the "bad" ones, and present some helpful warnings so the user can at least review what was not ingested and confirm that they're ok with that.
I've simplified things here. Per the attached video, I have two files I'm attempting to ingest. One contains a single valid Zeek NDJSON event:
The other contains text that's neither pcap nor ingestible Zeek.
# cat not.ndjson
not even json!
When each is ingested separately, the valid one loads in fine, and for the bad one an error message is popped up that says "Unknown file types" (side note: this should probably be singular "type", but that's not the primary issue here). Both of those are expected behaviors. However, if I try to drag both files into Brim as part of the same ingest attempt, now I get an error message "Only files of a single type (zeek or pcap) can be opened", which is confusing.
What I'd have expected is ingest of the "good" log and information about the "bad" one among the messages as shown in #577.
Verified in Brim commit 6dac8af talking to zqd commit 233e930.
Using the original repro steps, now we see the expected behavior where the "good" event makes it in and the "bad" event is identified via warning. See the attached video:
Even more importantly, now the true original use case can be shown to work: A directory full of logs generated by Zeek can be dragged in full, with the non-ingestible ones similarly flagged, but all the "good" data making it in.
Found in Brim commit
1fae48f
talking tozqd
commita2de891
.In this case I'm adopting the persona of a Zeek user that's trying to drag the contents of a Zeek log directory into the app. Zeek is known to generate a handful of not-Zeek-format-logs in such a directory (e.g. the
conn-summary
log and thestderr
/stdout
logs). As there's so many logs in the directory, it would be an excessive burden on the user for them to delete/unclick each of the "bad" ones before dragging the contents into Brim. Therefore it's important that Brim ingest what's good, be tolerant of the "bad" ones, and present some helpful warnings so the user can at least review what was not ingested and confirm that they're ok with that.I've simplified things here. Per the attached video, I have two files I'm attempting to ingest. One contains a single valid Zeek NDJSON event:
The other contains text that's neither pcap nor ingestible Zeek.
When each is ingested separately, the valid one loads in fine, and for the bad one an error message is popped up that says "Unknown file types" (side note: this should probably be singular "type", but that's not the primary issue here). Both of those are expected behaviors. However, if I try to drag both files into Brim as part of the same ingest attempt, now I get an error message "Only files of a single type (zeek or pcap) can be opened", which is confusing.
What I'd have expected is ingest of the "good" log and information about the "bad" one among the messages as shown in #577.
Repro.zip
The text was updated successfully, but these errors were encountered: