# Change logstash index creation format

**URL:** <https://discuss.elastic.co/t/change-logstash-index-creation-format/319254>\
**Category:** Logstash\
**Created:** [November 18, 2022, 2:56am UTC](https://discuss.elastic.co/t/change-logstash-index-creation-format/319254 "2022-11-18T02:56:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koreagrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/koreagrammer/32/113492_2.png) [@koreagrammer](https://discuss.elastic.co/u/koreagrammer)\
**Post date:** [November 18, 2022, 2:56am UTC](https://discuss.elastic.co/t/change-logstash-index-creation-format/319254/1 "2022-11-18T02:56:14Z")

</div>

How do I set the logstash output index name to the client IP where metricbeat is installed?

I just want logstash output index format to have below

> Metricbeat-{metricbeat.client.ip}-metricbeat.version-{YYYY.MM.DD}

---

<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:** [December 16, 2022, 2:56am UTC](https://discuss.elastic.co/t/change-logstash-index-creation-format/319254/2 "2022-12-16T02:56:16Z")

</div>

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