Good day!
I'am trying to collect namespace annotations from OKD cluster without any success, while namespace labels is colleted perfectly. Node annotations are not getting either.
My config:
filebeatConfig:
filebeat.yml: |
filebeat.inputs:
- type: container
enabled: true
close_inactive: 5m
paths:
- /var/lib/docker/containers/*/*.log
tags: ["test_filebeat"]
multiline.pattern: '^[\d]{4}-[\d]{2}-[\d]{2}\s[\d]{2}:[\d]{2}:[\d]{2}.[\d]{3}\s{1,2}[A-Z]{4,5}\s|^{".?timestamp":'
multiline.match: after
multiline.negate: true
processors:
- add_kubernetes_metadata:
host: ${NODE_NAME}
default_matchers.enabled: false
matchers:
- logs_path:
logs_path: "/var/lib/docker/containers/"
add_resource_metadata:
namespace:
include_annotations:
include_labels:
node:
include_annotations:
include_labels:
cluster version:
openshift v3.11.0+dc045cb-454
kubernetes v1.11.0+d4cacc0
Filebeat version: 7.14.0
What do I wrong? Can you help me?
Thank you!