forked from tenzir/tenzir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unflatten implicitly in the
zeek-tsv
parser (tenzir#3567)
Fixes tenzir/issues#615
- Loading branch information
Showing
7 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 22 additions & 4 deletions
26
tenzir/integration/reference/zeek-tsv-pipeline-format/step_11.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
error: failed to parse Zeek document: mismatching number #fields and #types | ||
= note: found 20 #fields | ||
= note: found 19 #types | ||
= note: line 9 | ||
#separator \x09 | ||
#set_separator , | ||
#empty_field (empty) | ||
#unset_field - | ||
#path zeek.conn | ||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p proto service duration orig_bytes resp_bytes conn_state local_orig local_resp missed_bytes history orig_pkts orig_ip_bytes resp_pkts resp_ip_bytes tunnel_parents community_id _write_ts | ||
#types time string addr port addr port string string interval count count string bool bool count string count count count count vector[string] string time | ||
2009-11-18T08:00:21.486539 Pii6cUUq1v4 192.168.1.102 68 192.168.1.1 67 udp - 163.82ms 301 300 SF - - 0 Dd 1 329 1 328 (empty) - - | ||
2009-11-18T08:08:00.237253 nkCxlvNN8pi 192.168.1.103 137 192.168.1.255 137 udp dns 3.78s 350 0 S0 - - 0 D 7 546 0 0 (empty) - - | ||
2009-11-18T08:08:13.816224 9VdICMMnxQ7 192.168.1.102 137 192.168.1.255 137 udp dns 3.75s 350 0 S0 - - 0 D 7 546 0 0 (empty) - - | ||
2009-11-18T08:07:15.800932 bEgBnkI31Vf 192.168.1.103 138 192.168.1.255 138 udp - 46.73s 560 0 S0 - - 0 D 3 644 0 0 (empty) - - | ||
#separator \x09 | ||
#set_separator , | ||
#empty_field (empty) | ||
#unset_field - | ||
#path zeek.conn | ||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p proto service duration orig_bytes resp_bytes conn_state local_orig local_resp missed_bytes history orig_pkts orig_ip_bytes resp_pkts resp_ip_bytes tunnel_parents community_id _write_ts | ||
#types time string addr port addr port string string interval count count string bool bool count string count count count count vector[string] string time | ||
2009-11-18T08:00:21.486539 Pii6cUUq1v4 192.168.1.102 68 192.168.1.1 67 udp - 163.82ms 301 300 SF - - 0 Dd 1 329 1 328 (empty) - - | ||
2009-11-18T08:08:00.237253 nkCxlvNN8pi 192.168.1.103 137 192.168.1.255 137 udp dns 3.78s 350 0 S0 - - 0 D 7 546 0 0 (empty) - - | ||
2009-11-18T08:08:13.816224 9VdICMMnxQ7 192.168.1.102 137 192.168.1.255 137 udp dns 3.75s 350 0 S0 - - 0 D 7 546 0 0 (empty) - - | ||
2009-11-18T08:07:15.800932 bEgBnkI31Vf 192.168.1.103 138 192.168.1.255 138 udp - 46.73s 560 0 S0 - - 0 D 3 644 0 0 (empty) - - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
error: failed to parse Zeek document: missing #path | ||
= note: line 12 | ||
6 changes: 4 additions & 2 deletions
6
tenzir/integration/reference/zeek-tsv-pipeline-format/step_13.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
error: failed to parse Zeek document: missing #path | ||
= note: line 14 | ||
error: failed to parse Zeek document: mismatching number #fields and #types | ||
= note: found 20 #fields | ||
= note: found 19 #types | ||
= note: line 9 |
4 changes: 2 additions & 2 deletions
4
tenzir/integration/reference/zeek-tsv-pipeline-format/step_14.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: !! logic_error: 'write "zeek-tsv", anonymous(null, null, null, true)' does not support heterogeneous outputs; cannot initialize for 'zeek-tsv' after 'zeek.conn' | ||
= note: from `write "zeek-tsv", anonymous(null, null, null, true)` | ||
error: failed to parse Zeek document: missing #path | ||
= note: line 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: failed to parse Zeek document: missing #path | ||
= note: line 14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters