I have a problem with the @timestamp field. Value of @timestamp is always the real event timestamp -2 hrs.
input{ file {...}}
filter{
if [type]=="apachelogs"{
grok{
match => [ "message", "%{COMBINEDAPACHELOG}"]
}
date {
timezone => "Europe/kiev"
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
remove_field => [ "timestamp" ]
}
}
}
output{ elasticsearch { hosts => ["localhost:9200"]}
The result
"@timestamp": "2016-11-09T13:29:53.000Z"
...
"timestamp": "09/Nov/2016:15:29:53 +0200"
We can see time mismatch . Whan I tune
date {
timezone => "UTC"
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss +0200" ]
remove_field => [ "timestamp" ]
}
match time @timestamp and timestamp, but Kibana shows the wrong time.
Any idea about this one ?
Thanks