# How to design output section to receive all logs based on timestamp

**URL:** <https://discuss.elastic.co/t/how-to-design-output-section-to-receive-all-logs-based-on-timestamp/195241>\
**Category:** Logstash\
**Created:** [August 14, 2019, 4:49pm UTC](https://discuss.elastic.co/t/how-to-design-output-section-to-receive-all-logs-based-on-timestamp/195241 "2019-08-14T16:49:57Z")\
**Posts on this page:** 4\
**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:** [August 14, 2019, 4:49pm UTC](https://discuss.elastic.co/t/how-to-design-output-section-to-receive-all-logs-based-on-timestamp/195241/1 "2019-08-14T16:49:57Z")

</div>

Hi guys

Let say from beat i have this below log naming

Record(timestamp).log  
Record(timestamp).log  
Complete Example for log file name: Record-20190814.log

And this log file will be created base on daily basis. Is there any idea how i can transport all this logs into elasticsearch ? How to design the output section in logstash so that the new daily index will be created ?  
Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![irobot678](https://avatars.discourse-cdn.com/v4/letter/i/54ee81/32.png) [@irobot678](https://discuss.elastic.co/u/irobot678)\
**Post date:** [August 14, 2019, 7:59pm UTC](https://discuss.elastic.co/t/how-to-design-output-section-to-receive-all-logs-based-on-timestamp/195241/2 "2019-08-14T19:59:37Z")

</div>

In the output section of logstash :

> output {  
> elasticsearch {  
> hosts =\> ["localhost:9200"]  
> index =\> "Record-%{+YYYY.MM.dd}.log"  
> }  
> }

---

<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:** [August 15, 2019, 12:17am UTC](https://discuss.elastic.co/t/how-to-design-output-section-to-receive-all-logs-based-on-timestamp/195241/3 "2019-08-15T00:17:31Z")

</div>

Hi Vamsi\_Vutukuri ,  
Thanks for your respond. I will try to implement this and update here the result! Thanks and really 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:** [September 12, 2019, 12:17am UTC](https://discuss.elastic.co/t/how-to-design-output-section-to-receive-all-logs-based-on-timestamp/195241/4 "2019-09-12T00:17:38Z")

</div>

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