mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add gzip log writing to the ascii writer.
This feature can be enabled globally for all logs by setting LogAscii::gzip_level to a value greater than 0. This feature can be enabled on a per-log basis by setting gzip-level in $confic to a value greater than 0.
This commit is contained in:
parent
2c2c9c9052
commit
c868a19a28
7 changed files with 191 additions and 8 deletions
|
@ -26,6 +26,13 @@ export {
|
|||
## This option is also available as a per-filter ``$config`` option.
|
||||
const use_json = F &redef;
|
||||
|
||||
## Define the gzip level to compress the logs. If 0,
|
||||
## the no gzip compression is performed. Enabling compression also changes
|
||||
## the log file name extension to include ".gz".
|
||||
##
|
||||
## This option is also available as a per-filter ``$config`` option.
|
||||
const gzip_level = 0 &redef;
|
||||
|
||||
## Format of timestamps when writing out JSON. By default, the JSON
|
||||
## formatter will use double values for timestamps which represent the
|
||||
## number of seconds from the UNIX epoch.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue