# Filebeat hint based autodiscovery not working

**URL:** <https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 18, 2018, 2:44am UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985 "2018-08-18T02:44:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Scoble](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_scoble/32/38142_2.png) [@Alex\_Scoble](https://discuss.elastic.co/u/Alex_Scoble)\
**Post date:** [August 18, 2018, 2:44am UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985/1 "2018-08-18T02:44:11Z")

</div>

I have filebeat 6.3.2 installed in kubernetes cluster as daemonset.

Configs are at [https://gist.github.com/ITBlogger/f50632d643ec4cb241bdd41355b295ba#file-filebeat-configmaps](https://gist.github.com/ITBlogger/f50632d643ec4cb241bdd41355b295ba#file-filebeat-configmaps) and deployment snippet is at [https://gist.github.com/ITBlogger/f50632d643ec4cb241bdd41355b295ba#file-k8s-deploy-snippet](https://gist.github.com/ITBlogger/f50632d643ec4cb241bdd41355b295ba#file-k8s-deploy-snippet)

Logs are making it to elk cluster just fine (addresses in the gist are redacted), but not getting sent via the nginx module, nor are the proper lines being excluded.

There's nothing in the filebeat logs to suggest that things aren't working.

Should also mention that annotations are not being sent to logstash/elasticsearch as they should either.

I seem to be missing something, but not sure what.

Thanks in advance for your help.

[PS] This has been solved...gists have been updated with the correct configs. Also see [http://itmanager.blogs.com/notes/2018/08/using-filebeat-hint-based-autodiscover-with-kubernetes.html](http://itmanager.blogs.com/notes/2018/08/using-filebeat-hint-based-autodiscover-with-kubernetes.html)

Alex

---

<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, 9:15am UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985/2 "2018-08-20T09:15:07Z")

</div>

Bump, I'm having exactly same issue. Multiline hints are not working either.

---

<div class="post-metadata">

**Author:** ![Alex\_Scoble](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_scoble/32/38142_2.png) [@Alex\_Scoble](https://discuss.elastic.co/u/Alex_Scoble)\
**Post date:** [August 20, 2018, 8:19pm UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985/3 "2018-08-20T20:19:44Z")

</div>

OK, I updated the config gist, because I realized after reading through the docs that the docker input isn't required with autodiscover...

Hints are still not working though.

---

<div class="post-metadata">

**Author:** ![Alex\_Scoble](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_scoble/32/38142_2.png) [@Alex\_Scoble](https://discuss.elastic.co/u/Alex_Scoble)\
**Post date:** [August 21, 2018, 12:13am UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985/4 "2018-08-21T00:13:18Z")

</div>

@exekias helped me figure out the issues.

Correct working setup is in the gists.

---

<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, 5:59am UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985/5 "2018-08-21T05:59:56Z")

</div>

@Alex_Scoble thanks for the update, adding include\_annotations: '\*' did the trick.

---

<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, 5:59am UTC](https://discuss.elastic.co/t/filebeat-hint-based-autodiscovery-not-working/144985/6 "2018-09-18T05:59:58Z")

</div>

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