Hello,
I'm dealing with this problem for quite some time now and after reading all topics related to this, I still wasn't able to find the solution. I am trying to replace the @timestamp field with my log timestamp having the pattern:
2020-04-13T13:51:30,127+0300.
I am sending the logs through a TCP socket from a Maven log4j2 application.
My logstash configuration is the following:
input {
tcp {
port => 12345
type => "log4j2"
}
}
filter {
csv {
columns => ["timestamp","severity","host","pid","thread","app","message","uuid"]
separator => "|"
skip_empty_columns => true
}
date {
locale => "en"
timezone => "Europe/Bucharest"
match => ["timestamp" , "yyyy-MM-dd'T'HH:mm:ss,SSSZ"]
remove_field => ["timestamp"]
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
index => "elk"
}
}
I keep getting the _dateparsefailure tag in Kibana. I have tried matching with the "ISO8601" but failed as well. If anyone has an idea about what could be the problem, please help. Thank you!