# Change index pattern used by metricbeat for monitoring logstash

**URL:** https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452
**Category:** Beats
**Tags:** elastic-stack-monitoring
**Created:** [June 9, 2021, 2:17pm UTC](https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452 "2021-06-09T14:17:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BradVido](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradvido/32/741_2.png) [@BradVido](https://discuss.elastic.co/u/BradVido)
#### Post date: [June 9, 2021, 2:17pm UTC](https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452/1 "2021-06-09T14:17:42Z")

</div>

We use metricbeat to monitor logstash, and it creates daily index patterns like:  
`.monitoring-logstash-7-mb-2021.06.09`  
We'd prefer **monthly** index patterns, but can't seem to find any way to change it.

Is it possible to change this configuration?  
Our logstash module config is pretty basic, and setting `index` here has no effect:

```auto
metricbeat.modules:
- module: logstash
  xpack.enabled: true
  period: 10s
  hosts: ["localhost:9600"]
  index: "something_else" #<-- doesn't change anything

```

---

<div class="post-metadata">

### Author: ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)
#### Post date: [June 9, 2021, 4:54pm UTC](https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452/2 "2021-06-09T16:54:33Z")

</div>

Hi @BradVido 🙂

Please, could you try with the info in the following link? [Configure the Elasticsearch output | Metricbeat Reference [7.13] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/elasticsearch-output.html#index-option-es) I think it might be what you need

---

<div class="post-metadata">

### Author: ![BradVido](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradvido/32/741_2.png) [@BradVido](https://discuss.elastic.co/u/BradVido)
#### Post date: [June 9, 2021, 5:15pm UTC](https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452/3 "2021-06-09T17:15:01Z")

</div>

Thanks, but I actually tried that first (Before i learned that index can be configured in the module itself). It also does nothing.

I'm guessing this is because i have `xpack.enabled: true` for monitoring, and that overrides the index? Still seems like it should be configurable though.

---

<div class="post-metadata">

### Author: ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)
#### Post date: [June 10, 2021, 11:03am UTC](https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452/4 "2021-06-10T11:03:50Z")

</div>

Can you try without `xpack.enabled: true` just to confirm? You'll get less metrics but at least you'll confirm if that's the case and open a bugfix request on GH 🙂

---

<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: [July 8, 2021, 11:04am UTC](https://discuss.elastic.co/t/change-index-pattern-used-by-metricbeat-for-monitoring-logstash/275452/5 "2021-07-08T11:04:39Z")

</div>

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