mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
logging/ascii: Support leftover log rotation in non-supervisor setups
We have a use case to rotate leftover log files in a non-supervisor setup. There doesn't seem to be a strict requirement on supervisor functionality. Allow enabling leftover log rotation through LogAscii::enable_leftover_log_rotation and redef this for the logger node in a supervisor setup individually.
This commit is contained in:
parent
c8545c85d8
commit
1f5ab4878b
4 changed files with 12 additions and 4 deletions
|
@ -37,6 +37,8 @@ function supervisor_rotation_format_func(ri: Log::RotationFmtInfo): Log::Rotatio
|
|||
|
||||
redef Log::rotation_format_func = supervisor_rotation_format_func;
|
||||
|
||||
redef LogAscii::enable_leftover_log_rotation = T;
|
||||
|
||||
@else
|
||||
|
||||
## Use the cluster's archive logging script.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue