Openobserve

Overview

Send messages to OpenObserve using its Logs Ingestion - JSON API. This API accepts multiple records in batch in JSON format.

Available in Logging operator version 4.5 and later.

Example

apiVersion: logging.banzaicloud.io/v1beta1
kind: SyslogNGOutput
metadata:
  name: openobserve
spec:
  openobserve:
    url: "https://some-openobserve-endpoint"
    port: 5080
    organization: "default"
    stream: "default"
    user: "username"
    password:
      valueFrom:
        secretKeyRef:
          name: openobserve
          key: password

For details on the available options of the output, see the documentation of the AxoSyslog syslog-ng distribution.

Configuration

OpenobserveOutput

(HTTPOutput, required)

disk_buffer (*DiskBuffer, optional)

This option enables putting outgoing messages into the disk buffer of the destination to avoid message loss in case of a system failure on the destination side. For details, see the Syslog-ng DiskBuffer options.

Default: false

organization (string, optional)

Name of the organization in OpenObserve.

port (int, optional)

The port number of the OpenObserve server. Specify it here instead of appending it to the URL.

Default: 5080

record (string, optional)

Arguments to the $format-json() template function. Default: "--scope rfc5424 --exclude DATE --key ISODATE @timestamp=${ISODATE}"

stream (string, optional)

Name of the stream in OpenObserve.