In my application, there are multiple logs that need to process, I want every log has its own processors.
BUT processors under specific input only process data collected by this input;
- type: log
paths:
- ./data.log
fields_under_root: true
fields:
'@log_type': data
namespace: data
net_pub: 1
json.keys_under_root: true
json.overwrite_keys: true
json.add_error_key: false
processors:
- copy_fields:
fields:
- from: host.name
to: srv_host
- from: dur
to: mydur-data
fail_on_error: false
ignore_missing: true
- drop_fields:
fields: ["agent","host","log","ecs"]
how to make it also process all data collected by Filebeat?