# Can not achive namespace annotations from OKD (kubernetes)

**URL:** <https://discuss.elastic.co/t/can-not-achive-namespace-annotations-from-okd-kubernetes/283032>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [September 1, 2021, 11:18am UTC](https://discuss.elastic.co/t/can-not-achive-namespace-annotations-from-okd-kubernetes/283032 "2021-09-01T11:18:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hollden/32/94014_2.png) [@hollden](https://discuss.elastic.co/u/hollden)\
**Post date:** [September 1, 2021, 11:18am UTC](https://discuss.elastic.co/t/can-not-achive-namespace-annotations-from-okd-kubernetes/283032/1 "2021-09-01T11:18:44Z")

</div>

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:

```auto
 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:

```auto
    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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 29, 2021, 1:18pm UTC](https://discuss.elastic.co/t/can-not-achive-namespace-annotations-from-okd-kubernetes/283032/2 "2021-09-29T13:18:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
