# Annotations not applied at pod level on logstash

**URL:** https://discuss.elastic.co/t/annotations-not-applied-at-pod-level-on-logstash/341971
**Category:** Logstash
**Created:** [August 30, 2023, 10:18am UTC](https://discuss.elastic.co/t/annotations-not-applied-at-pod-level-on-logstash/341971 "2023-08-30T10:18:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cdino](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cdino/32/125126_2.png) [@cdino](https://discuss.elastic.co/u/cdino)
#### Post date: [August 30, 2023, 10:18am UTC](https://discuss.elastic.co/t/annotations-not-applied-at-pod-level-on-logstash/341971/1 "2023-08-30T10:18:04Z")

</div>

I added some annotations as PodTemplate but those are not applied at pod level:

```auto
---
apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
  name: eck-logstash-beat
spec:
  count: 3
  version: 8.9.1
  [...]
  podTemplate:
    metadata:
      annotations:
        co.elastic.metrics/module: logstash
        co.elastic.metrics/enabled: true
        co.elastic.metrics/metricsets: node,node_stats
        co.elastic.metrics/hosts: '${data.host}:9600'
        co.elastic.metrics/period: 10s

```

Here the pod description:

```auto
# k describe pod eck-logstash-beat-ls-2
Name: eck-logstash-beat-ls-2
Namespace: eck-prod
Priority: 0
Service Account: default
Node: sole062/148.187.27.82
Start Time: Wed, 30 Aug 2023 11:49:00 +0200
Labels: common.k8s.elastic.co/type=logstash
                  controller-revision-hash=eck-logstash-beat-ls-76fc444498
                  logstash.k8s.elastic.co/name=eck-logstash-beat
                  logstash.k8s.elastic.co/version=8.9.1
                  statefulset.kubernetes.io/pod-name=eck-logstash-beat-ls-2
Annotations: kubectl.kubernetes.io/restartedAt: 2023-08-30T11:48:55+02:00
                  logstash.k8s.elastic.co/config-hash: 3975290577
Status: Running
IP: 10.36.6.239

```

What I'm doing wrong? i cant find documentation about logstash and annotations.

cheers

---

<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 27, 2023, 10:18am UTC](https://discuss.elastic.co/t/annotations-not-applied-at-pod-level-on-logstash/341971/2 "2023-09-27T10:18:35Z")

</div>

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