I have certain log format:
<....> [....] - [{...},{...},{...}].
With multi line codec and grok patterns, I was able to extract above into <a> [b] - c
Here c is [{...},{...},{...}] including the square brackets []
Now, when I tried to parse fields inside json object by applying json filter on c, I got a _jsonparsefailure. This is my config with json filter:
filter {
json{
source => c
}
}
But, when my log format is just [{...},{...},{...}], I was able to apply json codec and successfully parse the json fields inside it without any failures.
Any suggestion how I can parse json fields inside <....> [....] - [{...},{...},{...}] formatted logs ?