Hey there,
I'm a bit confused how the date filter is working.
I have a logstash config which is parsing cloudfront logs from an s3 input. which is working really nice. the timestamp in the logfile is UTC. So I added this information in a seperate field and try to parse it. Exspecting the timestamp field will show the time in Europe/Berlin time now, which would add 2 hours.
Can somebody explain where my fault is?
mutate {
add_field => {
"cloudfront_logdate" => "%{date} %{time} UTC"
}
}
date {
match => [ "cloudfront_logdate" , "yy-MM-dd HH:mm:ss ZZZ" ]
timezone => "Europe/Berlin"
}
Output:
"@timestamp" => 2017-06-05T10:13:13.000Z,
"cloudfront_logdate" => "17-06-05 10:13:13 UTC"
Thx for help
Simon