mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
The ASCII writer now supports a filter config option
'only_single_header_row' that turns the output into CSV format. In that mode all meta data is skipped except for a single header line with the fields names. Example: local my_filter: Log::Filter = [$name = "my-filter", $writer = Log::WRITER_ASCII, $config = table(["only_single_header_row"] = "T")]; Contributed by Carsten Langer.
This commit is contained in:
parent
6c2ee1ef54
commit
a5e237f50c
7 changed files with 117 additions and 21 deletions
|
@ -1,5 +1,13 @@
|
|||
##! Interface for the ASCII log writer. Redefinable options are available
|
||||
##! to tweak the output format of ASCII logs.
|
||||
##!
|
||||
##! The ASCII writer supports currently one writer-specific filter option via
|
||||
##! ``config``: setting ``only_single_header_row`` to ``T`` turns the output into
|
||||
##! into CSV mode where only a single header row with the column names is printed
|
||||
##! out as meta information. Example filter using this::
|
||||
##!
|
||||
##! local my_filter: Log::Filter = [$name = "my-filter", $writer = Log::WRITER_ASCII, $config = table(["only_single_header_row"] = "T")];
|
||||
##!
|
||||
|
||||
module LogAscii;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue