feat: normalize kubernetes.container.name to container.name like docker log collecting

This commit is contained in:
RouxAntoine 2022-05-29 15:05:18 +02:00
parent 2dafb5e113
commit eb2c942861
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -40,6 +40,12 @@ processors:
kubernetes.container.name: kilo kubernetes.container.name: kilo
- equals: - equals:
kubernetes.container.name: cfssl-issuer kubernetes.container.name: cfssl-issuer
- rename:
fields:
- from: "kubernetes.container.name"
to: "container.name"
ignore_missing: true
fail_on_error: false
setup: setup:
kibana: kibana:
@ -70,7 +76,7 @@ output.elasticsearch:
ssl: ssl:
verification_mode: none verification_mode: none
indices: indices:
- index: "filebeat-%{[agent.version]}-%{[kubernetes.container.name]:common}-%{+yyyy.MM.dd}" - index: "filebeat-%{[agent.version]}-%{[container.name]:common}-%{+yyyy.MM.dd}"
#logging.json: true #logging.json: true