Back to Beats

Change the index name [change-index-name]

docs/reference/filebeat/change-index-name.md

9.4.0824 B
Original Source

Change the index name [change-index-name]

Filebeat uses data streams named filebeat-[version]. To use a different name, set the index option in the {{es}} output. You also need to configure the setup.template.name and setup.template.pattern options to match the new name. For example:

sh
output.elasticsearch.index: "customname-%{[agent.version]}"
setup.template.name: "customname-%{[agent.version]}"
setup.template.pattern: "customname-%{[agent.version]}"

If you’re using pre-built Kibana dashboards, also set the setup.dashboards.index option. For example:

yaml
setup.dashboards.index: "customname-*"

For a full list of template setup options, see Elasticsearch index template.