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


#1

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.


(Magnus B├Ąck) #2

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


(system) #3

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