Sumo Logic HTTP

The sumologic-http output sends log records over HTTP to Sumo Logic. For details on the available options of the output, see the documentation of the AxoSyslog syslog-ng distribution.

Prerequisites

You need a Sumo Logic account to use this output. For details, see the documentation of the AxoSyslog syslog-ng distribution.

Example

apiVersion: logging.banzaicloud.io/v1beta1
kind: SyslogNGOutput
metadata:
  name: test-sumo
  namespace: default
spec:
  sumologic-http:
    batch-lines: 1000
    disk_buffer:
      disk_buf_size: 512000000
      dir: /buffers
      reliable: true
    body: "$(format-json
                --subkeys json.
                --exclude json.kubernetes.annotations.*
                json.kubernetes.annotations=literal($(format-flat-json --subkeys json.kubernetes.annotations.))
                --exclude json.kubernetes.labels.*
                json.kubernetes.labels=literal($(format-flat-json --subkeys json.kubernetes.labels.)))"
    collector:
      valueFrom:
        secretKeyRef:
          key: token
          name: sumo-collector
    deployment: us2
    headers:
    - 'X-Sumo-Name: source-name'
    - 'X-Sumo-Category: source-category'
    tls:
      use-system-cert-store: true

Configuration

SumologicHTTPOutput

collector (*secret.Secret, optional)

The Cloud Syslog Cloud Token that you received from the Sumo Logic service while configuring your cloud syslog source.

Default: empty

deployment (string, optional)

This option specifies your Sumo Logic deployment.https://help.sumologic.com/APIs/General-API-Information/Sumo-Logic-Endpoints-by-Deployment-and-Firewall-Security

Default: empty

headers ([]string, optional)

Custom HTTP headers to include in the request, for example, headers(“HEADER1: header1”, “HEADER2: header2”).

Default: empty

time_reopen (int, optional)

The time to wait in seconds before a dead connection is reestablished.

Default: 60

tls (*TLS, optional)

This option sets various options related to TLS encryption, for example, key/certificate files and trusted CA locations. TLS can be used only with tcp-based transport protocols. For details, see TLS for syslog-ng outputs and the documentation of the AxoSyslog syslog-ng distribution.

Default: -

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

body (string, optional)

Default: -

url (*secret.Secret, optional)

Default: -

batch-lines (int, optional)

Default: -

batch-bytes (int, optional)

Default: -

batch-timeout (int, optional)

Default: -

persist_name (string, optional)

Default: -

Last modified December 27, 2023: Version number bumps (00b4afd)