Eventum Logo

Eventum

Output

opensearch

Output plugin that indexes events into an OpenSearch cluster using the bulk API.

Indexes events into an OpenSearch (or Elasticsearch-compatible) cluster. Uses the bulk API for efficient batch indexing and supports load balancing across multiple nodes.

Parameters

ParameterTypeDefaultConstraintsDescription
hostslist of URLsRequired. At least one. Format: https://<host>:<port>.Cluster node addresses.
usernamestringRequired. Non-empty.Authentication username.
passwordstringRequired. Non-empty.Authentication password.
indexstringRequired. Non-empty.Target index name.
connect_timeoutinteger10>= 1Connection timeout in seconds.
request_timeoutinteger300>= 1Full request timeout in seconds.
verifybooleanfalseWhether to verify the server's TLS certificate.
ca_certpath or nullnullNon-empty if set.Path to CA certificate file.
client_certpath or nullnullNon-empty if set.Path to client certificate. Must be provided together with client_cert_key.
client_cert_keypath or nullnullNon-empty if set.Path to client certificate key. Must be provided together with client_cert.
proxy_urlURL or nullnullValid HTTP/HTTPS URL.Proxy address.
formatterformatterjsonHow events are serialized before indexing.

Behavior

  • Events are indexed using the OpenSearch bulk API for efficient batch writes.
  • When multiple hosts are listed, the plugin round-robins requests across them for load balancing.
  • Each event must be valid JSON — the default json formatter ensures this.

Examples

Single-node cluster:

output:
  - opensearch:
      hosts:
        - https://opensearch:9200
      username: admin
      password: ${secrets.opensearch_password}
      index: application-logs

Multi-node cluster with TLS:

output:
  - opensearch:
      hosts:
        - https://node1:9200
        - https://node2:9200
        - https://node3:9200
      username: ${params.opensearch_user}
      password: ${secrets.opensearch_password}
      index: events
      verify: true
      ca_cert: /etc/ssl/opensearch-ca.pem

On this page