I am trying to drop some not needed fields with Filebeat:
filebeat.yml:
filebeat.prospectors:
- input_type: log
paths:
- /var/log/app1.log
fields:
app_name: app1
fields_under_root: true
processors:
- drop_fields:
fields: ["type", "beat.name", "beat.version", "_type", "_score", "_id", "@version", "offset"]
registry_file: /var/lib/filebeat/registry
output.logstash:
...
As of now, only beat.name
, beat.version
and offset
fields have been dropped.
How can I drop other fields?