Management framework: set defaults for log rotation and persistent state

This adds management/persistence.zeek to establish common configuration for log
rotation and persistent variable state. Log-writing Zeek processes initially
write locally in their working directory, and rotate into subdirectory
"log-queue" of the spool. Since agent and controller have no logger,
persistence.zeek puts in place compatible configurations for them.

Storage folders for Broker-backed tables and clusterized stores default to
subdirectories of the new Zeek-level state folder.

When setting the ZEEK_MANAGEMENT_TESTING environment variable, persistent state
is kept in the local directory, and log rotation remains disabled.

This also tweaks @loads a bit in favor of simply loading frameworks/management,
which is easier to keep track of.
This commit is contained in:
Christian Kreibich 2022-05-20 16:42:04 -07:00
parent 7708cbe500
commit d1cd409e59
7 changed files with 65 additions and 7 deletions

View file

@ -1,7 +1,6 @@
##! Configuration settings for the cluster controller.
@load policy/frameworks/management/config
@load policy/frameworks/management/types
@load policy/frameworks/management
module Management::Controller;