mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00

* topic/robin/rotation-pp: Adding a default_path_func that makes the default naming scheme script-level controlled. Reworking logging's postprocessor logic. Conflicts: scripts/base/frameworks/logging/main.bro testing/btest/policy/frameworks/logging/rotate-custom.bro
27 lines
685 B
Text
27 lines
685 B
Text
|
|
@prefixes += cluster-worker
|
|
|
|
## Don't do any local logging.
|
|
redef Log::enable_local_logging = F;
|
|
|
|
## Make sure that remote logging is enabled.
|
|
redef Log::enable_remote_logging = T;
|
|
|
|
## Use the cluster's delete-log script.
|
|
redef Log::default_rotation_postprocessor_cmd = "delete-log";
|
|
|
|
## Record all packets into trace file.
|
|
# TODO: should we really be setting this to T?
|
|
redef record_all_packets = T;
|
|
|
|
# Workers need to have a filter for the notice log which doesn't
|
|
# do remote logging since we forward the notice event directly.
|
|
event bro_init()
|
|
{
|
|
Log::add_filter(Notice::NOTICE,
|
|
[
|
|
$name="cluster-worker",
|
|
$pred=function(rec: Notice::Info): bool { return F; }
|
|
]
|
|
);
|
|
}
|