# Metricbeat set index pattern

**URL:** <https://discuss.elastic.co/t/metricbeat-set-index-pattern/182799>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 26, 2019, 1:21pm UTC](https://discuss.elastic.co/t/metricbeat-set-index-pattern/182799 "2019-05-26T13:21:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gidi\_Kalef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gidi_kalef/32/43651_2.png) [@Gidi\_Kalef](https://discuss.elastic.co/u/Gidi_Kalef)\
**Post date:** [May 26, 2019, 1:21pm UTC](https://discuss.elastic.co/t/metricbeat-set-index-pattern/182799/1 "2019-05-26T13:21:45Z")

</div>

Hi Guys ,  
i have the following configuration under my metricbeat.yml configuration file:

output.elasticsearch:  
hosts: '${ELASTICSEARCH\_HOSTS:elasticsearch:9200}'  
index: "alerts-kafka-%{+yyyy.MM.dd}"  
#============================== Kibana =====================================  
setup.dashboards.enabled: true  
setup.kibana:  
host: "kibana:5601"

setup.dashboard.index: "alerts-_"  
setup.template.name: "alerts-kafka-%{+yyyy.MM.dd}"  
setup.template.pattern: "alerts-_"

when metric-beat started all dashboards are still looking for "metricbeat-_" pattern  
and "alerts-_" is not created ,  
is there any way to figure it out?  
i want all dashboards will set to another index pattern

Thanks, Gidi

---

<div class="post-metadata">

**Author:** ![Gidi\_Kalef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gidi_kalef/32/43651_2.png) [@Gidi\_Kalef](https://discuss.elastic.co/u/Gidi_Kalef)\
**Post date:** [May 27, 2019, 8:15am UTC](https://discuss.elastic.co/t/metricbeat-set-index-pattern/182799/2 "2019-05-27T08:15:22Z")

</div>

i resolved the issue by changing the  
setup.dashboard **s**.index: "alerts\*\*-\*\*\*"

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [May 28, 2019, 3:02pm UTC](https://discuss.elastic.co/t/metricbeat-set-index-pattern/182799/3 "2019-05-28T15:02:00Z")

</div>

👍 Glad you fixed it!

---

<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:** [June 25, 2019, 3:02pm UTC](https://discuss.elastic.co/t/metricbeat-set-index-pattern/182799/4 "2019-06-25T15:02:04Z")

</div>

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