Logstash - csv output plugin - path - today's timestamp filename

I'm utilizing Csv output plugin | Logstash Reference for my output.

I'd like to see today's date in my filename (i.e. file-2018-02-05), so I've tried using following:

/path/file-%{+YYYY-MM-dd}.txt

however, few files were generated as this use event's @timestamp, rather then today's date...

Please advise.

The %{+YYYY-MM-dd} notation always uses the date from @timestamp.

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