# Config Telegraf - several files

**URL:** <https://community.influxdata.com/t/config-telegraf-several-files/30965>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [August 1, 2023, 7:54am UTC](https://community.influxdata.com/t/config-telegraf-several-files/30965 "2023-08-01T07:54:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicctoto](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@nicctoto](https://community.influxdata.com/u/nicctoto)\
**Post date:** [August 1, 2023, 7:54am UTC](https://community.influxdata.com/t/config-telegraf-several-files/30965/1 "2023-08-01T07:54:59Z")

</div>

Hello,

I would like to add several configuration files telegraf.conf into telegraf.d, instead of having only one telegraf.conf… Tags or Global Tags are they mandatory to do that ?

Thanks in advance for your reply and best Regards

---

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [August 1, 2023, 11:04am UTC](https://community.influxdata.com/t/config-telegraf-several-files/30965/2 "2023-08-01T11:04:19Z")

</div>

> [@nicctoto](#):
>
> Tags or Global Tags are they mandatory to do that ?

I’m not sure about what’s the question… but the global tags section is just like any other section of the config, you can omit it, leave it empty, or use it… I think it should appear only once in the whole config but I’m not sure about what happens if more are defined (error? override? merge?)

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [August 1, 2023, 1:37pm UTC](https://community.influxdata.com/t/config-telegraf-several-files/30965/3 "2023-08-01T13:37:33Z")

</div>

> [@Giovanni\_Luisotto](#):
>
> I’m not sure about what happens if more are defined (error? override? merge?)

A strange, undefined behavior. Ideally the agent section is in the first file telegraf read’s in. Those settings are applied and are used setting up other plugins that are read until a second agent section is read in. Which may cause inconsistent behavior from all your plugins.
