# Index naming based on timestamp

**URL:** <https://discuss.elastic.co/t/index-naming-based-on-timestamp/198856>\
**Category:** Logstash\
**Created:** [September 10, 2019, 9:03am UTC](https://discuss.elastic.co/t/index-naming-based-on-timestamp/198856 "2019-09-10T09:03:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob94](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@Bob94](https://discuss.elastic.co/u/Bob94)\
**Post date:** [September 10, 2019, 9:03am UTC](https://discuss.elastic.co/t/index-naming-based-on-timestamp/198856/1 "2019-09-10T09:03:56Z")

</div>

Hi all,

Here i can see the beats was succuesfully collect the logs with this naming format and below is how the way its showed in logstash

Path =\> C:\var\log\myfolder\myrecord\_2019-09-09.log

My question is how to treat the timestamp here? Because on a daily basis new myrecord\_2019\_09\_10.log will be created and how to define the configuration in logstash output because everday is different date ?  
Any help is appreciated

---

<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 8, 2019, 9:03am UTC](https://discuss.elastic.co/t/index-naming-based-on-timestamp/198856/2 "2019-10-08T09:03:56Z")

</div>

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