# Telegraf on windows10

**URL:** <https://community.influxdata.com/t/telegraf-on-windows10/15509>\
**Category:** Systems\
**Created:** [August 6, 2020, 3:20pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509 "2020-08-06T15:20:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahiyaz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ahiyaz](https://community.influxdata.com/u/ahiyaz)\
**Post date:** [August 6, 2020, 3:20pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/1 "2020-08-06T15:20:04Z")

</div>

hi

ive installed a telegraf agent on win10. according to this guide [Using Telegraf on Windows | InfluxData](https://www.influxdata.com/blog/using-telegraf-on-windows/) .  
telegraf ver 1.12.5.  
ive installed snmp-net for windows and can do snmpwalk to devices.  
when starting telegraf i see no errors and i can see establish a connection to influx db (using netstat).  
but no matrics getting to my influxdb.  
using wireshark i can see there are no snmp packets.  
dose anyone know how to continue from here?

thanks

```
indent preformatted text by 4 spaces

```

PS C:\Program Files\telegraf\> .\telegraf --config-directory 'C:\Program Files\telegraf\conf' --test  
2020-08-06T14:22:08Z I! Starting Telegraf 1.12.5  
2020-08-06T14:22:08Z I! Using config file: C:\Program Files\Telegraf\telegraf.conf  
2020-08-06T14:22:08Z W! Telegraf is not permitted to read C:\Program Files\telegraf\conf" --test  
2020-08-06T14:22:08Z I! Loaded inputs: snmp snmp snmp  
2020-08-06T14:22:08Z I! Loaded aggregators:  
2020-08-06T14:22:08Z I! Loaded processors:  
2020-08-06T14:22:08Z I! Loaded outputs: influxdb  
2020-08-06T14:22:08Z I! Tags enabled: host=Chauncey-682  
2020-08-06T14:22:08Z I! [agent] Config: Interval:1m0s, Quiet:false, Hostname:“Chauncey-682”, Flush Interval:10s  
indent preformatted text by 4 spaces

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [August 6, 2020, 3:29pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/2 "2020-08-06T15:29:23Z")

</div>

Hey @ahiyaz

this line in your log output  
` 2020-08-06T14:22:08Z W! Telegraf is not permitted to read C:\Program Files\telegraf\conf" --test`

suggests that Telegraf can’t read its config file.

When you run telegraf (looks like you’re running it from PowerShell?) are you running it with elevated privileges?

Try launching CMD or PowerShell as an administrator and see if that fixes the issue. Or, you could put the config file in a different location. I store mine in program data, but when i install Telegraf I install it as a windows service, it could be that the service account can read from program data anyways.

---

<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 6, 2020, 3:54pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/3 "2020-08-06T15:54:56Z")

</div>

As already stated by @philb, I suggest you run telegraf with the `--test` flag in order to check for errors.  
Running it in the same condition of the “error” is the best, so use the same user that runs the Telegraf service. (if is running as a service)

I would also suggest you change your configuration in order to have the most verbose error logging

```auto
[agent]
  {...}
  debug = true
  quiet = false
  ## errors to console, but use a different error output if you prefer
  logtarget = "stderr" 

```

If no error is raised, maybe you are filtering out all the metrics.

If you do not see any error it might be useful to have a look at your configuration file

**EDIT**  
I’ve just noticed you are using

```auto
PS C:\Program Files\telegraf> .\telegraf --config-directory ‘C:\Program Files\telegraf\conf’ --test

```

In order to run Telegraf you must always provide the `--config` parameter, otherwise it won’t work. I remember reading an issue about that.

If you don’t want to use an actual conf file, just create an empty one (empty.conf), and then run

```auto
PS C:\Program Files\telegraf> .\telegraf --config 'C:\Program Files\telegraf\empty.conf' --config-directory 'C:\Program Files\telegraf\conf' --test

```

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [August 6, 2020, 4:15pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/4 "2020-08-06T16:15:27Z")

</div>

I’d not spotted the part about no providing the -config flag. that could be it.

Can definitely confirm though you need to at least provide at least an empty config file for that though, we ran into a similar issue when using multiple configurations.

Personally, for Windows agents I store configs in c:\programdata\telegraf\config (main config file in here) and then all other configs are in c:\programdata\telegraf\config\configd

passed to telegraf as

c:\programdata\telegraf\config\config.conf --config-directory c:\programdata\telegraf\config\configd

---

<div class="post-metadata">

**Author:** ![ahiyaz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ahiyaz](https://community.influxdata.com/u/ahiyaz)\
**Post date:** [August 6, 2020, 5:30pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/5 "2020-08-06T17:30:14Z")

</div>

> [@Giovanni\_Luisotto](#):
>
> `logtarget = "stderr" `

ive tried to run it in debug but got this error:  
indent preformatted text by 4 spaces  
E! [telegraf] Error running agent: Error parsing C:\Program Files\telegraf\telegraf.conf, line 9: field corresponding to `logtarget’ is not defined in config.AgentConfig  
indent preformatted text by 4 spaces

so ive marked out the “logtarget” line and run it again.  
it seems that it is running the telegraf.conf file.  
because you can see connection establish with influxDB and that telegraf loads 3 snmp inputs (as i configured) and in the logs you can see it accessing the correct agents IPs.  
but still, a lot of errors and no traffic.

```
indent preformatted text by 4 spaces

```

PS C:\Program Files\telegraf\> .\telegraf --config ‘C:\Program Files\telegraf\telegraf.conf’ --config-directory 'C:\Program Files\telegraf' --test  
2020-08-06T17:21:34Z I! Starting Telegraf 1.12.5  
2020-08-06T17:21:35Z W! Telegraf is not permitted to read C:\Program Files\telegraf" --test  
2020-08-06T17:21:35Z I! Loaded inputs: snmp snmp snmp  
2020-08-06T17:21:35Z I! Loaded aggregators:  
2020-08-06T17:21:35Z I! Loaded processors:  
2020-08-06T17:21:35Z I! Loaded outputs: influxdb  
2020-08-06T17:21:35Z I! Tags enabled: host=Chauncey-682  
2020-08-06T17:21:35Z I! [agent] Config: Interval:1m0s, Quiet:false, Hostname:“Chauncey-682”, Flush Interval:10s  
2020-08-06T17:21:35Z D! [agent] Initializing plugins  
2020-08-06T17:21:35Z D! [agent] Connecting outputs  
2020-08-06T17:21:35Z D! [agent] Attempting connection to [outputs.influxdb]  
2020-08-06T17:21:35Z D! [agent] Successfully connected to outputs.influxdb  
2020-08-06T17:21:35Z D! [agent] Starting service inputs  
2020-08-06T17:21:50Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifTable”  
2020-08-06T17:22:00Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “IF-MIB::ifTable.1”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptable” “-Ch” “-Cl” “-c” “public” “127.0.0.1” “IF-MIB::ifTable”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifDescr”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifIndex”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifType”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifMtu”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifSpeed”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifPhysAddress”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifAdminStatus”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOperStatus”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifLastChange”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInOctets”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInUcastPkts”  
2020-08-06T17:22:00Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInNUcastPkts”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInDiscards”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInErrors”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInUnknownProtos”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutOctets”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutUcastPkts”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutNUcastPkts”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutDiscards”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutErrors”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutQLen”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifSpecific”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifXTable”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “IF-MIB::ifXTable.1”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptable” “-Ch” “-Cl” “-c” “public” “127.0.0.1” “IF-MIB::ifXTable”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifName”  
2020-08-06T17:22:01Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInMulticastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifInBroadcastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutMulticastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifOutBroadcastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCInOctets”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCInUcastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCInMulticastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCInBroadcastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCOutOctets”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCOutUcastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCOutMulticastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHCOutBroadcastPkts”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifLinkUpDownTrapEnable”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifHighSpeed”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifPromiscuousMode”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifConnectorPresent”  
2020-08-06T17:22:02Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifAlias”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “IF-MIB::ifCounterDiscontinuityTime”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “SNMPv2-MIB::sysDescr.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “RFC1213-MIB::sysName.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “DISMAN-EXPRESSION-MIB::sysUpTimeInstance”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “SNMPv2-SMI::enterprises.1991.1.1.2.1.52.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “SNMPv2-SMI::enterprises.1991.1.1.2.1.53.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “-m” “all” “1.3.6.1.4.1.1991.1.1.1.1.18.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “SNMPv2-SMI::enterprises.25053.1.1.11.1.1.1.1.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: parsing host: address udp://172.17.0.11:161: too many colons in address  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “-m” “all” “.1.3.6.1.4.1.25053.1.1.12.1.1.1.3.1.2.1”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “-m” “all” “.1.3.6.1.4.1.25053.1.1.12.1.1.1.3.1.2.2”  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “SNMPv2-SMI::enterprises.12356.101.4.1.3.0”  
2020-08-06T17:22:03Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: parsing host: address udp://172.17.0.22:161: too many colons in address  
2020-08-06T17:22:03Z D! [inputs.snmp] Executing “snmptranslate” “-Td” “-Ob” “SNMPv2-SMI::enterprises.12356.101.4.1.4.0”  
2020-08-06T17:22:04Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: parsing host: address udp://172.17.0.1:161: too many colons in address  
2020-08-06T17:22:10Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:22:20Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:22:30Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:22:40Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:22:50Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:23:00Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: performing get on field sysDescr: write udp 127.0.0.1:60799-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60801-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60803-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: performing get on field sysDescr: write udp 127.0.0.1:60805-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: performing get on field sysDescr: write udp 127.0.0.1:60807-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60809-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60811-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60813-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60815-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:23:10Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:23:20Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:23:30Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:23:40Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:23:50Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:24:00Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: performing get on field sysDescr: write udp 127.0.0.1:60817-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: performing get on field sysDescr: write udp 127.0.0.1:60819-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60823-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60825-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: performing get on field sysDescr: write udp 127.0.0.1:60821-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60827-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60829-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60831-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60833-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:24:10Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:24:20Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:24:30Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:24:40Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:24:50Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:25:00Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: performing get on field sysDescr: write udp 127.0.0.1:60835-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60837-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: performing get on field sysDescr: write udp 127.0.0.1:60839-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60843-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.11:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60841-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.1:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60845-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: performing get on field sysDescr: write udp 127.0.0.1:60847-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: gathering table interface: performing bulk walk for field Descr: write udp 127.0.0.1:60849-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:00Z D! [inputs.snmp] Error in plugin: agent udp://172.17.0.22:161: gathering table ifXTable: performing bulk walk for field ifDescr: write udp 127.0.0.1:60851-\>127.0.0.1:0: i/o timeout  
2020-08-06T17:25:10Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:25:20Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics  
2020-08-06T17:25:30Z D! [outputs.influxdb] Buffer fullness: 0 / 10000 metrics

```
indent preformatted text by 4 spaces

```

---

<div class="post-metadata">

**Author:** ![ahiyaz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ahiyaz](https://community.influxdata.com/u/ahiyaz)\
**Post date:** [August 6, 2020, 5:31pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/6 "2020-08-06T17:31:41Z")

</div>

important to mention.  
this telegraf configuration works perfectly on ubuntu base telegraf agents.

---

<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 6, 2020, 5:47pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/7 "2020-08-06T17:47:04Z")

</div>

> [@ahiyaz](#):
>
> 2020-08-06T17:21:35Z W! Telegraf is not permitted to read C:\Program Files\telegraf" --test

You still have a permission related error, you must fix that first

---

<div class="post-metadata">

**Author:** ![ahiyaz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ahiyaz](https://community.influxdata.com/u/ahiyaz)\
**Post date:** [August 6, 2020, 6:08pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/8 "2020-08-06T18:08:16Z")

</div>

I can’t really understand why i get this permission error. I use PS shell as administrator.

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [August 7, 2020, 1:50pm UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/9 "2020-08-07T13:50:43Z")

</div>

Could you try installing Telegraf as a windows service and see if that changes anything?

---

<div class="post-metadata">

**Author:** ![ahiyaz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ahiyaz](https://community.influxdata.com/u/ahiyaz)\
**Post date:** [August 8, 2020, 7:20am UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/10 "2020-08-08T07:20:50Z")

</div>

hi  
it is configured as a service.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/0/044cc5fe1cd1a084fbd002be5979544d6bcbefe8.png)  
but what is wired for me is that although i get this permission error i see input errors regarding inputs and agents from the config file, so it seems like it can access the file.  
and just compliance of not able to pars the agents ip address.

attached my conf file and log.[log.txt](https://community.influxdata.com/uploads/short-url/k7crW3s8eu8hkf3kqfkPB4sessb.txt) (12.2 KB) [log.txt](https://community.influxdata.com/uploads/short-url/k7crW3s8eu8hkf3kqfkPB4sessb.txt) (12.2 KB) [telegraf.conf.txt](https://community.influxdata.com/uploads/short-url/u3Vz5WozvgunyIKS2Sgx36ynfMp.txt) (4.2 KB)

---

<div class="post-metadata">

**Author:** ![ahiyaz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ahiyaz](https://community.influxdata.com/u/ahiyaz)\
**Post date:** [August 8, 2020, 7:45am UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/11 "2020-08-08T07:45:48Z")

</div>

ive found the issue in my file.

ive configured agents = [“udp://172.17.200.1:161”]  
(which works in ubuntu telegraf).  
after changing it to agents = [“172.17.200.1:161”] it works and send data to influxDB.

---

<div class="post-metadata">

**Author:** ![philb](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/philb/32/1805_2.png) [@philb](https://community.influxdata.com/u/philb)\
**Post date:** [August 10, 2020, 8:48am UTC](https://community.influxdata.com/t/telegraf-on-windows10/15509/12 "2020-08-10T08:48:34Z")

</div>

Awesome, glad you got it sorted.
