# Add\_kubernetes\_metadata does't parse labels with dots properly

**URL:** <https://discuss.elastic.co/t/add-kubernetes-metadata-doest-parse-labels-with-dots-properly/145195>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 20, 2018, 3:01pm UTC](https://discuss.elastic.co/t/add-kubernetes-metadata-doest-parse-labels-with-dots-properly/145195 "2018-08-20T15:01:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jarek\_Miszkinis](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jarek\_Miszkinis](https://discuss.elastic.co/u/Jarek_Miszkinis)\
**Post date:** [August 20, 2018, 3:01pm UTC](https://discuss.elastic.co/t/add-kubernetes-metadata-doest-parse-labels-with-dots-properly/145195/1 "2018-08-20T15:01:08Z")

</div>

Labels with dots get parsed as a hash and it builds structures out of it, from my searching it looks like there were commits in code to replace dots with dashes in kubernetes and docker labels. But the dots are not replaces and instead data structures are built which breaks following labels too. I've tried it with and without autodiscover mode, also I'm using latest version of filebeat 6.3.2. If there are commits that didn't make it to that release, I'm willing to build the binaries + containers myself.

---

<div class="post-metadata">

**Author:** ![Jarek\_Miszkinis](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Jarek\_Miszkinis](https://discuss.elastic.co/u/Jarek_Miszkinis)\
**Post date:** [August 21, 2018, 6:13am UTC](https://discuss.elastic.co/t/add-kubernetes-metadata-doest-parse-labels-with-dots-properly/145195/2 "2018-08-21T06:13:04Z")

</div>

Example of labels causing issue:

 ![Screenshot%20from%202018-08-21%2015-01-31](https://us1.discourse-cdn.com/elastic/original/3X/a/b/ab1d87f06087e42f571e8711c0acdc0c8d1801d3.png)

---

<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 18, 2018, 6:13am UTC](https://discuss.elastic.co/t/add-kubernetes-metadata-doest-parse-labels-with-dots-properly/145195/3 "2018-09-18T06:13:07Z")

</div>

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