# Is it possible to monitor elasticsearch using metricbeat and custom index name?

**URL:** https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084
**Category:** Beats
**Tags:** metricbeat
**Created:** [July 30, 2021, 2:00pm UTC](https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084 "2021-07-30T14:00:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [July 30, 2021, 2:00pm UTC](https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084/1 "2021-07-30T14:00:12Z")

</div>

Hello !

I use metricbeat on the whole stack members (Elasticsearch/Logstash/Kibana) to collect system metrics (enabled by default)

I use logstash output and custom index name

metricbeat.yml :

```auto
# ------------------------------ Logstash Output -------------------------------
output.logstash:
  # The Logstash hosts
  hosts: ["logstash1:5044","logstash2:5044"]

```

logstash pipeline (lab-metricbeat is an alias for my ilm policy) :

```auto
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => ["http://logstash1:9200","http://logstash2:9200","http://kibana:9200"]
    index => "lab-metricbeat"
    ilm_enabled => true
    manage_template => false
  }
}

```

Now, I have to monitor all the cluster by activating the following metricbeat modules :

- elasticsearch-xpack
- logstash-xpack
- kibana-xpack

I'm asking if it will works because it looks like Kibana is waiting for specific index names like this to display monitoring data :

`.monitoring-kibana-*` and `.monitoring-es-*`

So, if I continue to use my custom index name, there is chance that monitoring data will never be displayed.

What do you think about that ?

Thanks !

---

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [July 31, 2021, 3:46pm UTC](https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084/2 "2021-07-31T15:46:32Z")

</div>

Anyone ? 🙂

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [July 31, 2021, 4:03pm UTC](https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084/3 "2021-07-31T16:03:43Z")

</div>

I do not think it is possible anymore, Kibana expects the monitoring data to be in the `.monitoring-*` index.

This is a similar question where it is confirmed that you can't change: [Change monitoring index name for Kibana UI](https://discuss.elastic.co/t/change-monitoring-index-name-for-kibana-ui/268530)

The currently recommended way to monitor the stack is to use metricbeat shipping the data directly to elasticsearch.

You can create a template for the monitoring index and add an alias `lab-metricbeat` so your ILM policy will still apply.

---

<div class="post-metadata">

### Author: ![Travis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/travis/32/54079_2.png) [@Travis](https://discuss.elastic.co/u/Travis)
#### Post date: [July 31, 2021, 4:44pm UTC](https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084/4 "2021-07-31T16:44:40Z")

</div>

Ok. Thanks for this confirmation. Hope it will be possible in the future !

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 28, 2021, 6:44pm UTC](https://discuss.elastic.co/t/is-it-possible-to-monitor-elasticsearch-using-metricbeat-and-custom-index-name/280084/5 "2021-08-28T18:44:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
