-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brim hides the string value "(empty)" #832
Comments
@mikesbrown: You've definitely stumbled onto something legit here. However, having worked with some of these special Zeek values in the past, I did a bit more tinkering and have a bit more color to add. Maybe this should turn into more than one issue. This is somewhat foggy territory since the Zeek TSV format lacks a formal specification (other than the implicit "the code's behavior is the spec"). But based on black box testing, I think we can make some conclusions. The important one is that, if we assume Zeek TSV files are ones that could be generated by Zeek itself, I don't think
Run through Zeek v3.1.3, it produces the following output
That is, since Your issue is still very much legit since when
Going back to the topic of what's legit in Zeek TSV, when
|
Thanks @philrz . I fixed this in #840. I realize it was an oversight not to include you as a reviewer in #828 . |
I've verified that this issue is no longer with us. I got curious and did a binary search which confirmed that it went away as of commit f7dabb8, which was associated with #1603. Specifically, it appears that #1603 (comment) did the trick. The screenshot below shows Brim at that commit successfully displaying this log that contains
|
For #828, I thought of any string Brim might treat specially. "(empty)" is one of them. Given a toy data set containing a string value of "(empty)", Brim will not render the string. This is true of both scalars and container members.
Consider empty.log, which looks like:
It contains strings with the value
(empty)
and also empty fields, using the default Zeekempty_field (empty)
.Here's the TZNG, and notice the only time
(empty)
appears is as string values. Empty fields in TZNG are[]
(on lines where id=44 or id=49).This special
(empty)
handling seems to be a pre-ZNG relic. There's nothing special about(empty)
in the ZNG spec. If Brim is reading ZNG, then it doesn't need to special-case the string(empty)
anymore.Here's what happens in the app:
"(empty)" is found in string searches, but is not displayed.
The text was updated successfully, but these errors were encountered: