Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 2.21 KB

elastic_output.md

File metadata and controls

46 lines (37 loc) · 2.21 KB

elastic_output operator

The elastic_output operator will send entries to an Elasticsearch instance

Configuration Fields

Field Default Description
id elastic_output A unique identifier for the operator
addresses required A list of addresses to send entries to
username Username for HTTP basic authentication
password Password for HTTP basic authentication
cloud_id Endpoint for the Elastic service (https://elastic.co/cloud)
api_key Base64-encoded token for authorization. If set, overrides username and password
index_field default A field that indicates which index to send the log entry to
id_field A field that contains an id for the entry. If unset, a unique id is generated
buffer A buffer block indicating how to buffer entries before flushing
flusher A flusher block configuring flushing behavior

Example Configurations

Simple configuration

Configuration:

- type: elastic_output
  addresses:
    - "http://localhost:9200"
  api_key: <my_api_key>

Configuration with non-default buffer and flusher params

Configuration:

- type: elastic_output
  addresses:
    - "http://localhost:9200"
  api_key: <my_api_key>
  buffer:
    type: disk
    path: /tmp/stanza_buffer
  flusher:
    max_concurrent: 8