# How to get more kubernetes metadata with filebeat

**URL:** <https://discuss.elastic.co/t/how-to-get-more-kubernetes-metadata-with-filebeat/123612>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 12, 2018, 6:07pm UTC](https://discuss.elastic.co/t/how-to-get-more-kubernetes-metadata-with-filebeat/123612 "2018-03-12T18:07:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenciso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenciso/32/28653_2.png) [@jenciso](https://discuss.elastic.co/u/jenciso)\
**Post date:** [March 12, 2018, 6:07pm UTC](https://discuss.elastic.co/t/how-to-get-more-kubernetes-metadata-with-filebeat/123612/1 "2018-03-12T18:07:43Z")

</div>

Hi community

I'm collecting logs of my kubernetes cluster using this guide ["the blog article of ELK 6.x "](https://www.elastic.co/blog/shipping-kubernetes-logs-to-elasticsearch-with-filebeat).

Using this method, I'm collecting many fields, like kubernetes.pod.name, kubernetes.annotations.abc, etc, it's really great!, But I would like to get more metadata fields, e.g. `kubernetes.container.image`, or whatever environment values of each container.

For this purpose. I didn't get usefully information of this url.  
[https://www.elastic.co/guide/en/beats/filebeat/master/add-kubernetes-metadata.html](https://www.elastic.co/guide/en/beats/filebeat/master/add-kubernetes-metadata.html)

Somebody know how to get it? some example for my filebeat.yml file?

Thanks!

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [March 13, 2018, 11:22am UTC](https://discuss.elastic.co/t/how-to-get-more-kubernetes-metadata-with-filebeat/123612/2 "2018-03-13T11:22:59Z")

</div>

Hi @jenciso,

Could you explain a little bit about how do you plan to use this data? Is it a hard requirement to have it attached to every log event?

Just for you to be aware, we also have a [kubernetes](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-kubernetes.html) module in Metricbeat, it retrieves this kind of info for monitoring.

Best regards

---

<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:** [April 10, 2018, 11:23am UTC](https://discuss.elastic.co/t/how-to-get-more-kubernetes-metadata-with-filebeat/123612/3 "2018-04-10T11:23:39Z")

</div>

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