# Logstash config version

**URL:** <https://discuss.elastic.co/t/logstash-config-version/190189>\
**Category:** Logstash\
**Created:** [July 12, 2019, 9:32am UTC](https://discuss.elastic.co/t/logstash-config-version/190189 "2019-07-12T09:32:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smerzlyakov](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@smerzlyakov](https://discuss.elastic.co/u/smerzlyakov)\
**Post date:** [July 12, 2019, 9:32am UTC](https://discuss.elastic.co/t/logstash-config-version/190189/1 "2019-07-12T09:32:43Z")

</div>

Hello.  
What is the best way to set logstash config version?  
When i change config for my custom log source, i must change index name and so on.  
So, is it some @metadata field, that i can use for setting config version, and set index name like when i do it for beats?  
`%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}`

Can you provide an example how to do 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:** [August 9, 2019, 9:32am UTC](https://discuss.elastic.co/t/logstash-config-version/190189/2 "2019-08-09T09:32:43Z")

</div>

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