# Several tag in only telegraft with snmp plugin

**URL:** <https://community.influxdata.com/t/several-tag-in-only-telegraft-with-snmp-plugin/2524>\
**Category:** Telegraf\
**Tags:** telegraf, grafana\
**Created:** [September 28, 2017, 6:36pm UTC](https://community.influxdata.com/t/several-tag-in-only-telegraft-with-snmp-plugin/2524 "2017-09-28T18:36:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Y\_eb](https://avatars.discourse-cdn.com/v4/letter/y/b487fb/32.png) [@Y\_eb](https://community.influxdata.com/u/Y_eb)\
**Post date:** [September 28, 2017, 6:36pm UTC](https://community.influxdata.com/t/several-tag-in-only-telegraft-with-snmp-plugin/2524/1 "2017-09-28T18:36:48Z")

</div>

Hi.

I have the configuration file with several tables and need to group them to represent a physical site, example, i have the 5 pcs by site (Argentina, Canada and Spain), in a central server have telegraf run, i need add tag in each site, example, 5 pc the Argentina assign static tag argentina, and 5 pc the canada assign static tag canada, etc.  
I use the snmp plugin, can use the “is\_tag” but i do not have the name the physical site published by snmp in all pcs for use this function.

Is possibly asign static tag with plugin snmp?

I sorry for my english.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [September 28, 2017, 6:41pm UTC](https://community.influxdata.com/t/several-tag-in-only-telegraft-with-snmp-plugin/2524/2 "2017-09-28T18:41:15Z")

</div>

You can assign static tags on any input plugin by using the [tags option](https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#input-config-tags). It would require you to define a separate input for each agent you are connecting to, so that they can each have their own static tag.

---

<div class="post-metadata">

**Author:** ![Y\_eb](https://avatars.discourse-cdn.com/v4/letter/y/b487fb/32.png) [@Y\_eb](https://community.influxdata.com/u/Y_eb)\
**Post date:** [September 28, 2017, 6:52pm UTC](https://community.influxdata.com/t/several-tag-in-only-telegraft-with-snmp-plugin/2524/3 "2017-09-28T18:52:00Z")

</div>

I tested with the next code and no have result.

Is correct ?

[[inputs.snmp]]  
agents = [“192.168.102.23”]  
timeout = "5s"  
interval = "1s"  
retries = 3  
version = 2  
community = ""  
name = "RGP-EZE"¨  
[[inputs.snmp.tags]]  
site=“EZE”

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [September 28, 2017, 7:09pm UTC](https://community.influxdata.com/t/several-tag-in-only-telegraft-with-snmp-plugin/2524/4 "2017-09-28T19:09:09Z")

</div>

You need to use single brackets for tags table:

```auto
[inputs.snmp.tags]
  site=“EZE”

```
