zeek/aux/broctl/policy/cluster-manager.rotate-logs.bro
Robin Sommer 2b6ad76bd5 Creating a branch release/1.5 with the current 1.5.3 release code.
This is so that people working from the current stable version can
still start using git.
2011-03-09 15:26:01 -08:00

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)));
}