# Creating a new custom index for haproxy metricbeat

**URL:** <https://discuss.elastic.co/t/creating-a-new-custom-index-for-haproxy-metricbeat/199246>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 12, 2019, 12:01pm UTC](https://discuss.elastic.co/t/creating-a-new-custom-index-for-haproxy-metricbeat/199246 "2019-09-12T12:01:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![L33T](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@L33T](https://discuss.elastic.co/u/L33T)\
**Post date:** [September 12, 2019, 12:01pm UTC](https://discuss.elastic.co/t/creating-a-new-custom-index-for-haproxy-metricbeat/199246/1 "2019-09-12T12:01:18Z")

</div>

Hi,

I cannot seem to get a new custom index created in elastic when trying output from metricbeat using the haproxy module. I have a 3 node cluster in operation. I can see the kibana dashboards install into kibana and the index pattern appears in the visualizations but i cannot see the index itself being created.

Metricbeat Config:  
#==================== Elasticsearch template setting ==========================  
setup.template.settings:  
index.number\_of\_shards: 1  
index.codec: best\_compression  
output.elasticsearch.index: "haproxyES-%{[agent.version]}-%{+yyyy.MM.dd}"  
setup.template.name: "haproxyES"  
setup.template.pattern: "haproxyES-_"  
setup.dashboards.index: "haproxyES-_"

Cheers,

---

<div class="post-metadata">

**Author:** ![Alex\_Kristiansen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_kristiansen/32/46086_2.png) [@Alex\_Kristiansen](https://discuss.elastic.co/u/Alex_Kristiansen)\
**Post date:** [September 12, 2019, 9:43pm UTC](https://discuss.elastic.co/t/creating-a-new-custom-index-for-haproxy-metricbeat/199246/2 "2019-09-12T21:43:44Z")

</div>

@L33T,

Have you re-run `metricbeat --setup` ? Can you confirm that data is being ingested into elasticsearch at all with these settings?

---

<div class="post-metadata">

**Author:** ![L33T](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@L33T](https://discuss.elastic.co/u/L33T)\
**Post date:** [September 30, 2019, 9:20am UTC](https://discuss.elastic.co/t/creating-a-new-custom-index-for-haproxy-metricbeat/199246/3 "2019-09-30T09:20:33Z")

</div>

I`ll re-run it and confirm 🙂

---

<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:** [October 28, 2019, 9:20am UTC](https://discuss.elastic.co/t/creating-a-new-custom-index-for-haproxy-metricbeat/199246/4 "2019-10-28T09:20:37Z")

</div>

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