logstash-plugins / logstash-filter-date

Apache License 2.0
7 stars 43 forks source link

Daylight saving-time not parsing #113

Open ruria opened 7 years ago

ruria commented 7 years ago

Version: 5.6.3 Operating System: CentOS 7 Config File (if you have sensitive info, please remove it): input { stdin {} } filter { date { match => [ "message", "yyyy-MM-dd'T'HH:mm:ss,SSS" ] target => "MyParsedDate" } } output { stdout { codec => rubydebug }}

Sample Data: 2017-03-26T02:59:33,492 2017-03-26T12:59:33,492

Steps to Reproduce: Launch logstash. Logstash fails to date parse first line of data.

we can narrow down this. The error rises only during daylight saving-time. So 2017-10-26 between 02 to 03 , 2016-10-25 between 02-03 and so on... automatic daylight saving-time adjustment is on, and we´re in GMT +2 time zone.