Skip to main content

Supported data types:

📘 Logs

Configuration

Advanced Options

Logstash Index Configuration

The Elasticsearch exporter supports dynamic index configuration through Logstash. You can specify the target index for your logs using the elasticsearch.index field in your Logstash configuration.

Example Logstash Configuration

In this example:
  • The exporter will use the elasticsearch.index attribute to determine the target index
  • The index name can include dynamic date patterns (e.g., %{+YYYY.MM.dd})
  • You can use any Logstash condition to set different indices based on your requirements

Notes

  • If elasticsearch.index is not set, the exporter will use the default index configuration
  • The index name must follow Elasticsearch naming conventions
  • Date patterns in the index name will be evaluated at the time of sending the logs