Why is logstash throwing error of daylight saving time gap with SQL Server data

前端 未结 1 1732
慢半拍i
慢半拍i 2021-01-26 04:46

We are using LogStash version 7.3.2 to fetch SQL Server data.

And it is working fine but sometimes it is throwing below exception:

Exception when executi         


        
相关标签:
1条回答
  • 2021-01-26 04:55

    In Logstash if a datetime string has no TZ part it is assumed to be a UTC time.

    If you know that the datetime is a local time string then you need to tell the date filter which timezone the date was generated in. You may use one of the Joda timezones,

    e.g. America/New_York, America/Detroit or EST5EDT - these are merely labels that point to Timezone Java code that know what changes in clocks occurred in all timezones for quite some time into the past.

    See this page for info on how the updates are followed. http://www.oracle.com/technetwork/java/javase/tzdata-versions-138805.html 100

    Once the datetime string is converted to a Timestamp object (by the date filter) it is considered UTC time.

    0 讨论(0)
提交回复
热议问题