I have a set of logs that I would like to input into ES and analyze. The logs are flowing into ES fine but my manual 'date' field is not properly linking to @timestamp. Thus, @timestamp is the ES ingestion time, not the date of the log itself.
date {
match => ["date", "MM/dd/yyyy"]
timezone => "America/Chicago"
target => "@timestamp"
}
mutate {
add_field => [ "date", "06/06/2017" ]
Output...
"@timestamp" => 2017-07-21T19:31:56.329Z,
"Avg Dur(sec)" => 0.0,
"@version" => "1",
"host" => "elkTest",
"time" => "06/06/2017",
"Max Avg Dur(sec)" => 0.0
Is this not the way to do it, is there a better way, or is the format just not matching up with @timestamp.
Any guidance would be appreciated.