"@version" => "1",
**"@timestamp" => "2016-02-03T10:02:40.000Z",**
"type" => "adobelog",
"host" => "*******",
"clientstate" => "connect-continue",
"status" => "connect",
"stream" => "continue",
"category" => "session",
**"timestamp" => "2016-02-03 11:02:40",**
"year" => "2016",
"month" => "02",
"day" => "03",
"time" => "11:02:40",
"timezone" => "CET",
"ipHost" => "********",
"spid" => 16012,
"cpuload" => 0,
"memoryusage" => "2",
"app" => "vod",
"appinstance" => "_definst_",
"eventduration" => 0,
"clientip" => "********",
"port" => [
[0] "1935",
[1] "1935"
],
"referrer" => "*****"
"useragent" => "WIN 20,0,0,286",
"os" => "WIN",
"scBytes" => 3646
I want to replace my @timestamp with the value of timestamp and I´m generating the timestamp value with the logstash filter
mutate{
add_field =>{"timestamp" => "%{year}-%{month}-%{day} %{time} +0100"}
}
And I tried
date{
match => ["timestamp", "YYYY-MM-dd HH:mm:ss Z"]
target => "@timestamp"
}
And in other case with **"timestamp" => "2016-02-03 11:02:40",**
I tried
date{
match => ["timestamp", "YYYY-MM-dd HH:mm:ss"]
timezone => "Europe/Madrid"
target => "@timestamp"
}
thanks in advance.