Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 2.53 KB

File metadata and controls

57 lines (40 loc) · 2.53 KB

Chronicle Forwarder Exporter

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.

Minimum Agent Versions

Supported Pipelines

  • Logs

How It Works

  1. For Syslog, it establishes a network connection to the specified Chronicle forwarder endpoint.
  2. For File, it writes logs to a specified file path.

Configuration

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.

Raw Log Field

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.

Example Configurations

Syslog Configuration Example

chronicleforwarder:
  export_type: "syslog"
  raw_log_field: body
  syslog:
    endpoint: "syslog.example.com:10514"
    network: "tcp"

File Configuration Example

chronicleforwarder:
  export_type: "file"
  raw_log_field: attributes["message"]
  file:
    path: "/path/to/logfile"