In my main filebeat.yml
I have
filebeat.config.inputs:
enabled: true
path: /usr/share/filebeat/configs/*.yml
So I can define multiple config files.
Each config file specifies a custom field name
to add.
However this is always added as a nested field field.name
.
- type: log
enabled: true
paths:
- /var/log/appName.log
fields:
name: appName
This will give the field field.appName
. I just want appName
.
I tried using target: ''
but that doesn't work.
How can I do that?