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
394 B
Text
13 lines
394 B
Text
# $Id: standalone.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 ( ! bro_is_terminating() )
|
|
system(fmt("create-link-for-log %s", get_file_name(f)));
|
|
}
|
|
|