# Filebeat conditional hint default config

**URL:** <https://discuss.elastic.co/t/filebeat-conditional-hint-default-config/275668>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 11, 2021, 10:11am UTC](https://discuss.elastic.co/t/filebeat-conditional-hint-default-config/275668 "2021-06-11T10:11:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [June 11, 2021, 10:11am UTC](https://discuss.elastic.co/t/filebeat-conditional-hint-default-config/275668/1 "2021-06-11T10:11:37Z")

</div>

Hi,

I have following use case:

I am using hint based auto discover feature and I want to provide more than one default config based on for example kubernetes.namespace.name. Semantically:

"If namespace = X apply default config A, else apply default config B"

The other option would be to use autodisover with temlplate and using a condition but then I am not able to use hint based autodiscover for the rest of the logs since one can not use both autodiscover and hint based autodiscover at the same time, right?

Any ideas how to achieve that?

---

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [June 17, 2021, 8:29pm UTC](https://discuss.elastic.co/t/filebeat-conditional-hint-default-config/275668/2 "2021-06-17T20:29:16Z")

</div>

Anyone? ☹

---

<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:** [July 15, 2021, 10:29pm UTC](https://discuss.elastic.co/t/filebeat-conditional-hint-default-config/275668/3 "2021-07-15T22:29:30Z")

</div>

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