The drop fields section is working for the other fields like kubernetes.pod.id but it is not working for agent.* and ecs fields.
Any workaround here?
- Version: 7.3.2
- Operating System: Linux
- Steps to Reproduce: Apply the config below.
filebeatConfig:
filebeat.yml: |
filebeat.config:
modules:
path: ${path.config}/modules.d/*.yml
# Reload module configs as they change:
reload.enabled: false
filebeat.autodiscover:
providers:
- type: kubernetes
templates:
- condition.and:
- equals.kubernetes.labels.log-group: xxx
config:
- type: container
paths:
- '/var/lib/docker/containers/${data.kubernetes.container.id}/*.log'
processors:
- drop_fields:
fields: ["agent.ephemeral_id", "agent.hostname", "agent.id", "agent.type", "agent.version", "ecs.version", "input.type", "log.offset"]
output.elasticsearch:
hosts: '${ELASTICSEARCH_HOSTS:elasticsearch-master:9200}'