Logstash has been refreshing data for a long time. One day I will add a time field to it
After adding it, I found that all the time that was originally year, month, and day have been added 5 or 6 hours
And it's quite regular. The time of January 1st 1970 is all 6 hours away, and the more recent times are all 5 hours away.
Google "logstash time difference", almost all of them are 8 hours away
Later, I looked at the configuration of logstash, there is no parameter after the jdbc connection string, which may be the reason
So I added a?serverTimezone=CTT to reset the timestamp and brush it once, and the time difference problem was solved.
Although I don't know why the difference is 5 or 6 hours, it is a lesson to add parameters to the connection string in logstash.