-
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
Adapt to Zeek "files" log losing conn_uids+tx_hosts+rx_hosts and gaining uid+id #2981
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ export function uidQuery(pool: string, uid: string) { | |
} | ||
|
||
export function uidFilter(uid: string) { | ||
return zedScript`uid==${uid} or ${uid} in conn_uids or ${uid} in uids or referenced_file.uid==${uid}` | ||
return zedScript`uid==${uid} or ${uid} in uids or referenced_file.uid==${uid}` | ||
} | ||
|
||
export function communityConnFilter(data: CommunityConnArgs) { | ||
|
@@ -25,6 +25,7 @@ export function findConnLog(pool: string, uid: string) { | |
| (` + | ||
uidFilter(uid) + | ||
`) | ||
| _path=="conn" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jameskerr: I'll definitely appreciate your close review here. The function name There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense to me! |
||
| is(ts, <time>) | ||
| is(duration, <duration>) | ||
| is(uid, <string>) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do the
:=
assignment here because if I leave it as justid.resp_h
then onlyid
appears as the column header in the table and no values under it, I guess sinceid
is a record type and I assume the table is only prepared to render primitive values, and primitive values are all we want to show here anyway. So I'm kinda conjuring uptx_host
andrx_host
as fake field names just for presentation purposes, but that feels defensible.