base/frameworks/cluster/nodes/logger.zeek
This is the core Zeek script to support the notion of a cluster logger.
The logger is passive (other Zeek instances connect to us), and once connected the logger receives logs from other Zeek instances. This script will be automatically loaded if necessary based on the type of node being started. This is where the cluster logger sets it’s specific settings for other frameworks and in the core.
Summary
State Variables
Generic log metadata rendered into filename that zeek-archiver may interpret. |
Redefinitions
Alarm summary mail interval. |
|
Log rotation interval. |
|
Use the cluster’s archive logging script. |
|
Turn on local logging. |
|
Turn off remote logging since this is the logger and should only log here. |
Functions
Encode the given table as zeek-archiver understood metadata part. |
|
This function will rotate logs in a format compatible with zeek-archiver. |
Detailed Interface
State Variables
Functions
- archiver_encode_log_metadata
-
Encode the given table as zeek-archiver understood metadata part.
- archiver_rotation_format_func
- Type:
This function will rotate logs in a format compatible with zeek-archiver. If you’re using the Supervisor framework, this function will be used, if not, you can set
Log::rotation_format_functo this function.