# Kubernetes metadata labels are not sent

**URL:** <https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 28, 2018, 4:19pm UTC](https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400 "2018-08-28T16:19:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maligos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maligos/32/34878_2.png) [@maligos](https://discuss.elastic.co/u/maligos)\
**Post date:** [August 28, 2018, 4:19pm UTC](https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400/1 "2018-08-28T16:19:30Z")

</div>

Hello everyone!

Could you help me guys?  
My Filebeat doesn’t attach Kubernetes metadata. I don’t know why, it looks very strange because log contain normal Kubernetes activity without any errors.

My setup:  
Kubernetes 1.11.2 (containerd v1.1.2)  
Filebeat 6.4.0

Here is my Filebeat config: [https://paste.ofcode.org/BBKrhyAjFcsT3S29EbUByS](https://paste.ofcode.org/BBKrhyAjFcsT3S29EbUByS)  
Here is Filebeat log: [https://paste.ofcode.org/uBkntBA39yKzPv8nLbLdZT](https://paste.ofcode.org/uBkntBA39yKzPv8nLbLdZT)

---

<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:** [August 28, 2018, 9:14pm UTC](https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400/2 "2018-08-28T21:14:20Z")

</div>

Hi @maligos,

Configuration looks right at a first glance, can you please post the full log? I'm interested in the part where Kubernetes starts watching for Pod events to construct the metadata table.

Best regards

---

<div class="post-metadata">

**Author:** ![maligos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maligos/32/34878_2.png) [@maligos](https://discuss.elastic.co/u/maligos)\
**Post date:** [August 29, 2018, 9:55am UTC](https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400/3 "2018-08-29T09:55:58Z")

</div>

Hi @exekias  
Thank you for the participation!  
Here is full "kubernetes" log: [https://paste.ofcode.org/R2C36rbbnrGZubs3iFTst3](https://paste.ofcode.org/R2C36rbbnrGZubs3iFTst3)

---

<div class="post-metadata">

**Author:** ![maligos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maligos/32/34878_2.png) [@maligos](https://discuss.elastic.co/u/maligos)\
**Post date:** [August 29, 2018, 10:16am UTC](https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400/4 "2018-08-29T10:16:05Z")

</div>

OMG! I've just fixed it! I removed "host" section from "add\_kubernetes\_metadata" and now it is working fine!  
New day - clear mind! 😃

---

<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 26, 2018, 10:16am UTC](https://discuss.elastic.co/t/kubernetes-metadata-labels-are-not-sent/146400/5 "2018-09-26T10:16:12Z")

</div>

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