# Kubernetes integration wrong node name

**URL:** <https://discuss.elastic.co/t/kubernetes-integration-wrong-node-name/362306>\
**Category:** Elastic Agent\
**Created:** [July 1, 2024, 4:07pm UTC](https://discuss.elastic.co/t/kubernetes-integration-wrong-node-name/362306 "2024-07-01T16:07:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pk92](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pk92](https://discuss.elastic.co/u/pk92)\
**Post date:** [July 1, 2024, 4:07pm UTC](https://discuss.elastic.co/t/kubernetes-integration-wrong-node-name/362306/1 "2024-07-01T16:07:22Z")

</div>

Hi,

Let's say I have a Kubernetes cluster with three nodes:

```auto
host1
host2
host3

```

now when I get container logs from these nodes, all of them have host1 in their node.name and node.hostname field, though the host.hostname field clearly states the message comming from one of the other hosts.

```auto
kubernetes.node.name: host1
kubernetes.node.hostname: host1
host.hostname: host2

```

Where does this come from? I have another cluster where it works and this doesn't happen. I can't find any information about how these field get populated, to see if there is something wrong.
