# Telegraf to Influx database

**URL:** <https://community.influxdata.com/t/telegraf-to-influx-database/14039>\
**Category:** Telegraf\
**Created:** [April 25, 2020, 4:52pm UTC](https://community.influxdata.com/t/telegraf-to-influx-database/14039 "2020-04-25T16:52:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agustin\_Orlando](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/agustin_orlando/32/4741_2.png) [@Agustin\_Orlando](https://community.influxdata.com/u/Agustin_Orlando)\
**Post date:** [April 25, 2020, 4:52pm UTC](https://community.influxdata.com/t/telegraf-to-influx-database/14039/1 "2020-04-25T16:52:22Z")

</div>

Hi everyone! I´ve been trying to use an Arduino UNO to publish a json to a mqtt broker, the use telegraf to collect said json and send it to an influx database. I installed telegraf and influxdb 1.8 and then started the telegraf service using Windows´ PowerShell ISE, and it says it has connected with the MQTT broker correctly.

> 2020-04-25T16:31:01Z I! [inputs.mqtt\_consumer] Connected [tcp://52.29.186.242:1883]

When I open the influxd.exe, I get the following message whenever the json is published

> [httpd] 127.0.0.1 - - [25/Apr/2020:13:31:30 -0300] “POST /write?db=prueba\_telegraf\_mqtt\_1 HTTP/1.1” 204 0 “-” “Telegraf/1.13.4” 380e8e9b-8712-11ea-8001-00e04c6871cd 53966

I created the “prueba\_telegraf\_mqtt\_1” database using the influx.exe cmd. However, I am not sure how or where I can see the json that is being sent to the database, or if it is being received at all. How can I check this?

This is the telegraf.conf configuration

> [[inputs.mqtt\_consumer]]  
> servers = [“tcp://52.29.186.242:1883”]  
> topics = [  
> “esp/test”,  
> ]  
> data\_format = “json”

> [[outputs.influxdb]]  
> (#) urls = [“udp://localhost:8086”] # UDP endpoint example  
> urls = [“[http://127.0.0.1:8086](http://127.0.0.1:8086)”]  
> skip\_database\_creation = true  
> database = “prueba\_telegraf\_mqtt\_1”

Thanks in advance for your help.

---

<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:** [April 27, 2020, 2:49pm UTC](https://community.influxdata.com/t/telegraf-to-influx-database/14039/2 "2020-04-27T14:49:33Z")

</div>

Hello @Agustin_Orlando,  
Can you please try setting `debug=True` in [agent] in you telegraf config and share the output?  
Thank you!
