I am unable to access kubernetes metadata in custom fields. Can someone please help?
config:
- type: docker
containers.ids:
- "*"
fields_under_root: true
processors:
- add_kubernetes_metadata:
in_cluster: true
- drop_fields:
fields: ["host"]
multiline.pattern: '^{"log":"[0-9]{4}-[0-9]{2}-[0-9]{2}'
multiline.negate: true
multiline.match: after
fields:
hostname: ${data.kubernetes.pod.name}