# User and password in telegraf.conf

**URL:** <https://community.influxdata.com/t/user-and-password-in-telegraf-conf/17168>\
**Category:** Telegraf\
**Created:** [December 11, 2020, 9:55am UTC](https://community.influxdata.com/t/user-and-password-in-telegraf-conf/17168 "2020-12-11T09:55:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Connz21](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/connz21/32/6147_2.png) [@Connz21](https://community.influxdata.com/u/Connz21)\
**Post date:** [December 11, 2020, 9:55am UTC](https://community.influxdata.com/t/user-and-password-in-telegraf-conf/17168/1 "2020-12-11T09:55:54Z")

</div>

hi guys,  
telegraf agent has been installed on one server in order to collect cpu data and send them to an Influxdb installed as test.  
Now we will have another Influxdb as prod.  
for this connection we will use user and password.  
For the first time telegraf should send the data to both Influxdb  
Is it possible to configure telegraf, that it is using conenction without user and password and a connection with user and password.

best regards

Conny

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [December 11, 2020, 9:50pm UTC](https://community.influxdata.com/t/user-and-password-in-telegraf-conf/17168/2 "2020-12-11T21:50:04Z")

</div>

Hello @Connz21,  
Welcome!  
Sure you can include multiple output configurations. One with the password and one without. Let me know how that works for you and if you have any trouble.  
Here is the configuration for reference  
1.x:

> **[telegraf/plugins/outputs/influxdb at master · influxdata/telegraf](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/influxdb)**
>
> master/plugins/outputs/influxdb

2.0:

> <https://github.com/influxdata/telegraf/blob/master/plugins/outputs/influxdb_v2/README.md>
