﻿---
title: Change the index name
description: Heartbeat uses data streams named heartbeat-[version]. To use a different name, set the index option in the Elasticsearch output. You also need to configure...
url: https://docs-v3-preview.elastic.dev/elastic/beats/pull/47883/reference/heartbeat/change-index-name
---

# Change the index name
Heartbeat uses data streams named `heartbeat-[version]`. To use a different name, set the [`index`](/elastic/beats/pull/47883/reference/heartbeat/elasticsearch-output#index-option-es) option in the Elasticsearch 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]}"
```

For a full list of template setup options, see [Elasticsearch index template](https://docs-v3-preview.elastic.dev/elastic/beats/pull/47883/reference/heartbeat/configuration-template).
Remember to change the index name when you load dashboards via the Kibana UI.