mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This is so that people working from the current stable version can still start using git.
13 lines
415 B
Text
13 lines
415 B
Text
# $Id: cluster-manager.rotate-logs.bro 6811 2009-07-06 20:41:10Z robin $
|
|
|
|
redef log_rotate_interval = 24hrs;
|
|
redef log_rotate_base_time = "0:00";
|
|
redef RotateLogs::default_postprocessor = "archive-log";
|
|
|
|
event file_opened(f: file)
|
|
{
|
|
# Create a link from the archive directory to the newly created file.
|
|
if ( MANAGER == 1 && ! bro_is_terminating() )
|
|
system(fmt("create-link-for-log %s", get_file_name(f)));
|
|
}
|
|
|