Hi,
I am trying to get logs whose are on two different lines :
[2019-06-18T06:57:32.032Z] [org.kie.api.internal.utils.tydhiks] [main] [141] [INFO ]
Adding Service org.drools.core.concurrent.EEEeeF
In my logstash I tried :
grok {
patterns_dir => "/u01/app/elk-config/logstash/patterns"
match => ["message", "(?m)\[(?<timestamp>%{TIMESTAMP_ISO8601})\]\[%{DATA:servlet}\]\[%{WORD:branch}\]\[%{DATA:PID}\]\[%{DATA:level}\]%{DATA:log_message}"]
}
but it does not take the second line in the same json and I've got a "_grokparsefailure" on my field log_message.
I tried :
filter {
mutate {
gsub => ["message", "\s\n*", ""]
}
}
but it does not change anything
Do you have an idea ?
Thanks