# Configuration sharing

**URL:** <https://discuss.elastic.co/t/configuration-sharing/270126>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 14, 2021, 2:45pm UTC](https://discuss.elastic.co/t/configuration-sharing/270126 "2021-04-14T14:45:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Marius\_Iversen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_iversen/32/68988_2.png) [@Marius\_Iversen](https://discuss.elastic.co/u/Marius_Iversen)\
**Post date:** [April 14, 2021, 3:00pm UTC](https://discuss.elastic.co/t/configuration-sharing/270126/2 "2021-04-14T15:00:49Z")

</div>

I think this is one of the "problems" that can have many different solutions and could try to provide one or more alternatives at least, all depending on what you want to do.

If you want to share the filebeat configuration between teams, which seems to be a good option, as long as none actually make changes that would break another teams setup, then I would focus on using conditions based on labels, and ask each team to pick a label, like team1, team2 etc.

That way you can have this list of conditions, and at the top there is one condition per team label, and any condition under it could for example be specified by each team individually, so that they don't impact eachother.

An example on label based conditions:

> [@Filebeat Autodiscovery: Filtering by container labels](https://discuss.elastic.co/t/filebeat-autodiscovery-filtering-by-container-labels/120201):
>
> Hi, I would like to set up Filebeat configuration with docker autodiscovery provider to create prospectors only for docker containers with certain label, e.g., filebeat.enable: "true". However I find it difficult to find the correct condition format to achieve this. I have tried the following config, but it does not seem to match any docker events: filebeat.autodiscover: providers: - type: docker templates: - condition: equals: docker.container.la…

Is this pure docker or is it running on for example k8?

---

_[View the full topic](https://discuss.elastic.co/t/configuration-sharing/270126)._
