The Chronicle Forwarder Exporter is designed for forwarding logs to a Chronicle Forwarder endpoint using either Syslog or File-based methods. This exporter supports customization of data export types and various configuration options to tailor the connection and data handling to specific needs.
- Introduced: v1.42.0
- Logs
- For Syslog, it establishes a network connection to the specified Chronicle forwarder endpoint.
- For File, it writes logs to a specified file path.
Field | Type | Default Value | Required | Description |
---|---|---|---|---|
export_type | string | syslog |
true |
Type of export, either syslog or file . |
raw_log_field | string | false |
The field name to send raw logs to Chronicle. | |
syslog.endpoint | string | 127.0.0.1:10514 |
false |
The Chronicle forwarder endpoint. |
syslog.transport | string | tcp |
false |
The network protocol to use (e.g., tcp , udp ). |
syslog.tls.key_file | string | false |
Configure the receiver to use TLS. | |
syslog.tls.cert_file | string | false |
Configure the receiver to use TLS. | |
file.path | string | false |
The path to the file for storing logs. |
The raw log field is the field name that the exporter will use to send raw logs to Chronicle. It is an OTTL expression that can be used to reference any field in the log record. If the field is not present in the log record, the exporter will not send the log to the Chronicle Forwarder. The log record context can be viewed here: Log Record Context.
chronicleforwarder:
export_type: "syslog"
raw_log_field: body
syslog:
endpoint: "syslog.example.com:10514"
network: "tcp"
chronicleforwarder:
export_type: "file"
raw_log_field: attributes["message"]
file:
path: "/path/to/logfile"