Hi ,
in my grok I'm parsing date column :
match => { "message" => "%{MONTHDAY:MONTHDAY}-%{MONTH:MONTH}-%{YEAR:YEAR} %{HOUR:HOUR}:%{MINUTE:MINUTE}:%{SECOND:SECOND}%{SPACE} %{DATA:loglevel}%{SPACE} \[%{DATA:thread}\]%{GREEDYDATA:message}"}
mutate {
add_field =>
{
"date_created" => "%{MONTHDAY}/%{MONTH}/%{YEAR} %{HOUR}:%{MINUTE}:%{SECOND}"
}
}
and instead of getting the message date from the log , I'm getting the creation date in the output file :
"date_created" => 2020-06-11T08:26:09.707Z,
"@metadata" => {
"index" => "catal_log",
"beat" => "filebeat",
"ip_address" => "192.168.141.222",
"version" => "6.8.10",
"type" => "doc"
},
"prospector" => {
"type" => "log"
},
Can you please give me a clue what is wrong ?
Best Regards.