Elasticsearch

Overview

Based on the ElasticSearch destination of AxoSyslog core.

Example

apiVersion: logging.banzaicloud.io/v1beta1
kind: SyslogNGOutput
metadata:
  name: elasticsearch
spec:
  elasticsearch:
    url: "https://elastic-search-endpoint:9200/_bulk"
    index: "indexname"
    type: ""
    user: "username"
    password:
      valueFrom:
        secretKeyRef:
          name: elastic
          key: password

Configuration

(HTTPOutput, required)

Default: -

index (string, optional)

Name of the data stream, index, or index alias to perform the action on.

Default: -

type (*string, optional)

The document type associated with the operation. Elasticsearch indices now support a single document type: _doc

Default: -

custom_id (string, optional)

The document ID. If no ID is specified, a document ID is automatically generated.

Default: -

logstash_prefix (string, optional)

Set the prefix for logs in logstash format. If set, then Index field will be ignored.

Default: -

logstash_prefix_separator (string, optional)

Set the separator between LogstashPrefix and LogStashDateformat.

Default: -

logstash_suffix (string, optional)

Set the suffix for logs in logstash format.

Default: ${YEAR}.${MONTH}.${DAY}

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