This works fine with logstash 1.5.6 but with logstash 2.2.2 it sets @timestamp to the previous day??
echo "Mon Feb 22 22:20:41.144" | /opt/logstash/bin/logstash -e '
input { stdin {codec => line} }
filter { date { match => [ "message" , "EEE MMM dd HH:mm:ss.SSS" ] } }
output { stdout {codec => rubydebug} }
'
Settings: Default pipeline workers: 2
Logstash startup completed
{
"message" => "Mon Feb 22 22:20:41.144",
"@version" => "1",
"@timestamp" => "2016-02-21T22:20:41.144Z",
"host" => "0.0.0.0"
}
Logstash shutdown completed
Any ideas?