policy/frameworks/cluster/controller/log.zeek¶
-
ClusterController::Log
¶
This module implements straightforward logging abilities for cluster controller and agent. It uses Zeek’s logging framework, and works only for nodes managed by the supervisor. In this setting Zeek’s logging framework operates locally, i.e., this logging does not involve any logger nodes.
- Namespace
ClusterController::Log
- Imports
Summary¶
Types¶
The record type containing the column fields of the agent/controller log. |
|
The controller/agent log supports four different log levels. |
Redefinitions¶
The cluster logging stream identifier. |
Hooks¶
A default logging policy hook for the stream. |
Functions¶
A debug-level log message writer. |
|
An error-level log message writer. |
|
An info-level log message writer. |
|
A warning-level log message writer. |
Detailed Interface¶
Types¶
- ClusterController::Log::Info¶
- Type
-
- ts:
time
&log
The time at which a cluster message was generated.
- node:
string
&log
The name of the node that is creating the log record.
- level:
string
&log
Log level of this message, converted from the above Level enum
- role:
string
&log
The role of the node, translated from ClusterController::Types::Role.
- message:
string
&log
A message indicating information about cluster controller operation.
- ts:
- Attributes
The record type containing the column fields of the agent/controller log.
Hooks¶
- ClusterController::Log::log_policy¶
- Type
A default logging policy hook for the stream.
Functions¶
- ClusterController::Log::debug¶
-
A debug-level log message writer.
- Message
the message to log.
- ClusterController::Log::error¶
-
An error-level log message writer. (This only logs a message, it does not terminate Zeek or have other runtime effects.)
- Message
the message to log.
- ClusterController::Log::info¶
-
An info-level log message writer.
- Message
the message to log.
- ClusterController::Log::warning¶
-
A warning-level log message writer.
- Message
the message to log.