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

Hi guys

Let say from beat i have this below log naming

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!

In the output section of logstash :

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

Hi Vamsi_Vutukuri ,
Thanks for your respond. I will try to implement this and update here the result! Thanks and really appreciated!

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