Well, firstly, do not use SYSLOGTIMESTAMP, since that discards the year, and if there is no year then a logstash date filter will guess, and I can guarantee that sometimes it will guess incorrectly. I would dissect it
dissect { mapping => { "message" => "%{} %{[@metadata][timestamp]} %{+[@metadata][timestamp]} %{+[@metadata][timestamp]} %{+[@metadata] [timestamp]} %{restOfLine}" } }
date { match => [ "[@metadata][timestamp]", "MMM d HH:mm:ss yyyy" ] }
will get you
"@timestamp" => 2020-02-17T15:25:56.000Z,
You could use the target option on the date filter to set [Time] instead.
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.