if [type] == "nginx-default" {
grok {
patterns_dir => "/etc/logstash/patterns"
match => [ "message", "%{COMBINEDAPACHELOG}" ]
}
date {
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss +0100" ]
timezone => "CET"
target => "logdatetime"
}
}
When i look for example into Kibana Table, i see:
Thats correct, as the Date/Time is the same as from the origin message! But when i look into JSON i get a value which differs exact an hour:
I believe its something about timezone or such. Can anyone help to get the correct values also in the JSON view!? I dont want to correct the values in kibana for view or fields, i want to have the values corrected with logstash, while its pushed into elastic, as i process the data later.
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.