Skip to content

elasticsearch

Send events to elasticsearch

output:
    elasticsearch:
        url: https://127.0.0.1:9200
        index: my_index
output:
    elasticsearch:
        url: https://127.0.0.1:9200
        username: elastic
        password: changeme
        cloud_id: someId
        index: my_index
        batch_policy:
          size: 1000
          duration: 10s
          max_batch_bytes: 10485760
output:
    elasticsearch:
        url: https://127.0.0.1:9200
        index: my_index
        tls:
          ca: /etc/ssl/ca.crt
          skip_verify: false
output:
  retry:
    max_retries: 5
    initial_wait: "2s"
    backoff: "exponential"
  elasticsearch:
    url: https://127.0.0.1:9200
    index: my_index

Fields

url

Elasticsearch URL to utilize
Type: string
Required: true

username

Elasticsearch username to use
Type: string
Required: false.

password

Password for the elasticsearch user
Type: string
Required: false

cloud_id

Elasticsearch CloudID
Type: string
Required: false.

index

Elasticsearch index to utilize. default behavior is to append YYYY-MM-DD to the index name. i.e. index of index would send to index-YYYY-MM-DD where the date chosen is the date of ingest.
Type: string
Required: true

tls

TLS configuration for custom CA certificates and client certificates. Type: object Required: false

Each string field (ca, cert, key) accepts either a file path or inline PEM content. If the value starts with -----BEGIN, it is treated as inline PEM.

Field Type Default Description
ca string CA certificate for server verification
cert string Client certificate for mTLS
key string Client private key for mTLS
skip_verify boolean false Skip server certificate verification

batch_policy

Batching policy for bulk inserts. Type: object Required: false

Field Type Description
size integer Maximum documents per batch (default: 500)
duration string Maximum time before flush (default: "10s")
max_batch_bytes integer Maximum cumulative byte size per batch (default: 10MB)

retry

Retry policy for failed writes. When present, the runtime retries failed writes with backoff.

Type: object Required: false

Field Type Default Description
max_retries integer 3 Maximum retry attempts
initial_wait string "1s" Wait before first retry
max_wait string "30s" Maximum wait cap
backoff string "exponential" Strategy: constant, linear, or exponential

Document validation errors are never retried.