How create raw logstash output file with daily file rollver

Hi All
I have clients file beats who will send me logs to my logstash .
I want to create raw log file with daily rollover like stdout .
Kindly help.
Thanks in advance.

Hi

Any suggestions

Thanks

What have you tried?

This could be done with the file output.

Just use something like this in the output block:

file {
    path => "/path/to/fileName-%{+YYYY.MM.dd}.json"
}
1 Like

Thanks it works fine