Hello,
I'm using a date filter plugin to match a date field, which is in the format yyyy-MM-dd (so the field does not provide the time, for example 2018-07-03). My desire would be to obtain Logstash parsing the date @00:00:00 my local time. Here's the filter I'm using
date {
match => [ "timestamp_field", "yyyy-MM-dd" ]
timezone => "UTC"
target => "timestamp_field"
}
No matter if I use timezone => "UTC"
or timezone => "Europe/Rome"
(which is my local timezone), I always get the time in this format:
July 3rd 2018, 02:00:00.000
While I would like to get
July 3rd 2018, 00:00:00.000
By comparison, the field @timestamp
, which contains the log parsing time, is perfectly correct.
What could be the issue here?