I'm sending a log file to logstash using filebeat that does not encode timezone in the timestamp:
2019-03-08 17:48:49,766 [3] INFO Corp.FO.DataLoaders.BaseDataFile [DOMAIN\username] - log message detail
Until today, when daylight savings changed, I've been seeding the logstash date filter plugin with the [beat][timezone]
field. I add this to events using the filebeat processor "add_locale."
FILEBEAT CONFIGURATION
processors:
- add_locale:
format: abbreviation
LOGSTASH CONFIGURATION
date {
locale => "en"
match => ["corp.log.entryTimestamp", "yyyy-MM-dd HH:mm:ss,SSS"]
timezone => "%{[beat][timezone]}"
tag_on_failure => ["timestamp_parse_failed"]
target => "@timestamp"
}
When daylight savings started on the east coast of the US today, the [beat][timezone]
field was sent 'EDT' instead of 'EST' which logstash couldn't parse because 'EDT' is not a valid canonical ID timezone for logstash (http://joda-time.sourceforge.net/timezones.html). I had the same issue with CEST and CET.
Any idea how to get this working or do I just need to set it manually?
Thanks!
Peter