# Adding docker swarm node name to events

**URL:** <https://discuss.elastic.co/t/adding-docker-swarm-node-name-to-events/205540>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 28, 2019, 7:15pm UTC](https://discuss.elastic.co/t/adding-docker-swarm-node-name-to-events/205540 "2019-10-28T19:15:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndg](https://avatars.discourse-cdn.com/v4/letter/n/db5fbb/32.png) [@ndg](https://discuss.elastic.co/u/ndg)\
**Post date:** [October 28, 2019, 7:15pm UTC](https://discuss.elastic.co/t/adding-docker-swarm-node-name-to-events/205540/1 "2019-10-28T19:15:16Z")

</div>

Hi! After a lot of work i managed to receive data from a Docker Swarm cluster from a apache-php microservice that i created and i can visualize it with Kibana but i have one extra thing to improve, which is the node name. I am receiving a docker.container.labels.com\_docker\_swarm\_node\_id event which is the node id (a bunch of random numbers and letters created randomly by the docker deamon), but i would like to receive a more user frendly information like the hostname of the node. I know that Filebeat, along with the other beats, send the agent.hostname and hostname fields, but those have the hostname of the container when i need the hostname of the node. How can i accomplish that?  
My filebeat file is as follows:  
filebeat.config:  
modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: false

```
filebeat.autodiscover:
  providers:
    - type: docker
      hints.enabled: true

processors:
- add_cloud_metadata: ~

#output.elasticsearch:
# hosts: 'es-master:9200'

output.logstash:
  hosts: ["logstash:5044"]

#setup.kibana.host: "http://kibana:5601"
#setup.dashboards.enabled: true
```

---

<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:** [November 25, 2019, 7:15pm UTC](https://discuss.elastic.co/t/adding-docker-swarm-node-name-to-events/205540/2 "2019-11-25T19:15:29Z")

</div>

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