What's the timezone of the syslog messages, i.e. what's the timezone of "Jun 22 05:51:19"? What does your date filter look like? What's the system timezone of the machine where Logstash runs?
[root@elk_server conf.d]# date
Thu Jun 22 14:01:18 GST 2017
we've hosted both the remote syslog and ELK in the same server. we're still testing
I do not have a date filter. I did not need one as the messages are being received in syslog format.
They're formatted correctly from the Unix servers because they're being sent with the GST timezone.
What I suspect is the events from Unix are in GST and so they're corrected to UTC by reducing 4 hours.
But with ESX they're being sent in UTC and probably LS is reducing another 4 hours causing this.
So you're using a syslog input? You may have to replace it with a tcp input and grok and date filters to mimic what the syslog input does but passing timezone => "UTC" to the date filter so it doesn't assume that the timestamps is in local time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.