We have, for reasons, a massive error file that has many different message formats in it. Im just looking to initially get the line into the server, then I should be able to split up the message field after.
My config looks like this:
filter {
if [type] == "errorfile" {
grok {
match => { "message" => "[%{SYSLOG5424SD:timestamp}] %{GREEDYDATA:message_remainder }"}
}
date {
match => [ "timestamp", "dd-MMM-yyyy HH:mm:ss" ]
}
mutate {
replace => { "message" => "%{message_remainder}" }
}
}
}
This broadly works, but I now get a message field and and message_remainder field in kibana, sudo I added
drop {
remove_field => ["%{message_remainder}"]
}
but it looks like it dropped the entire log message.
Baliclly what I am trying to achieve is to not have the timestamp in the message field because it already has its own field