Hi!
I have a log file with json records like
{
"request": {
"foo": "bar"
},
"response": {
"foo": "bar"
}
}
and the following configuration for filebeat
- type: filestream
paths:
- /path/to/file
tags: ["tags"]
fields_under_root: true
fields:
field1: value1
parsers:
- ndjson:
target: root
overwrite_keys: true
expand_keys: true
So I want to see the parsed fields like root.request.foo
and root.response.foo
but it doesn't works.
With target: ""
it normally parse log records to request.foo
and response.foo
Whats could be wrong?