# Heartbeatのインデックス名を任意に指定する方法

**URL:** <https://discuss.elastic.co/t/heartbeat/219557>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [February 17, 2020, 3:03am UTC](https://discuss.elastic.co/t/heartbeat/219557 "2020-02-17T03:03:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tsgkdt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsgkdt/32/39151_2.png) [@tsgkdt](https://discuss.elastic.co/u/tsgkdt)\
**Post date:** [February 18, 2020, 3:14am UTC](https://discuss.elastic.co/t/heartbeat/219557/3 "2020-02-18T03:14:25Z")

</div>

何らかの理由があってindex名を変えたい、とのことだと思いますが、１つだけ補足させてください。

heartbeatで入れたデータは[Uptime](https://www.elastic.co/jp/uptime-monitoring)で可視化できるようになっていますが、Index名を変えるとUptimeで見るIndex先も変更してあげる必要があります。

> **[Ingest uptime data with Heartbeat | Elastic Observability \[8.11\] | Elastic](https://www.elastic.co/guide/en/observability/current/ingest-uptime.html)**

> - The Uptime UI requires a `heartbeat-8*` index pattern. If you have configured a different index pattern, you can use [index aliases](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/indices-aliases.html) to ensure data is recognized by the UI.

UptimeのIndex指定については、こんな質問が過去にあったようです。

> [@Uptime indices setting available?](https://discuss.elastic.co/t/uptime-indices-setting-available/212311):
>
> Hi, in the spaces I've created, I limit access to certain indices, so space A has access to heartbeat-a-\* indices and space B has access to heartbeat-b-\* indices only. I've created role A and role B to achieve this. In the Metrics app or SIEM app, there are space related settings available, which I can use to set the used indices for that app in that space, for the Uptime app, I don't have this. This is a problem, if a user has both roles, then he sees the heartbeat monitors for both roles in …

---

_[View the full topic](https://discuss.elastic.co/t/heartbeat/219557)._
