# Telegraf - Error running agent: Error loading config file

**URL:** <https://community.influxdata.com/t/telegraf-error-running-agent-error-loading-config-file/18122>\
**Category:** InfluxDB 2\
**Tags:** telegraf\
**Created:** [February 1, 2021, 8:17pm UTC](https://community.influxdata.com/t/telegraf-error-running-agent-error-loading-config-file/18122 "2021-02-01T20:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottbusi](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@scottbusi](https://community.influxdata.com/u/scottbusi)\
**Post date:** [February 1, 2021, 8:17pm UTC](https://community.influxdata.com/t/telegraf-error-running-agent-error-loading-config-file/18122/1 "2021-02-01T20:17:42Z")

</div>

Getting error below when trying to run Telegraf

Telegraf 1.17.2  
2021-02-01T19:55:58Z I! Using config file: /etc/telegraf/telegraf.conf  
2021-02-01T19:55:58Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: line 1: configuration specified the fields [“topic”], but they weren’t used

---

<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:** [February 1, 2021, 9:49pm UTC](https://community.influxdata.com/t/telegraf-error-running-agent-error-loading-config-file/18122/2 "2021-02-01T21:49:37Z")

</div>

Hello @scottbusi,  
Welcome!  
Can you please share your telegraf configuration?

---

<div class="post-metadata">

**Author:** ![scottbusi](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@scottbusi](https://community.influxdata.com/u/scottbusi)\
**Post date:** [February 18, 2021, 2:23am UTC](https://community.influxdata.com/t/telegraf-error-running-agent-error-loading-config-file/18122/3 "2021-02-18T02:23:57Z")

</div>

Thank you for the reply, we figured it out it was a typo
