# Unable to insert data to OpenTSDB

**URL:** <https://discuss.elastic.co/t/unable-to-insert-data-to-opentsdb/32267>\
**Category:** Logstash\
**Created:** [October 15, 2015, 12:36pm UTC](https://discuss.elastic.co/t/unable-to-insert-data-to-opentsdb/32267 "2015-10-15T12:36:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanlop](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sanlop](https://discuss.elastic.co/u/sanlop)\
**Post date:** [October 15, 2015, 12:36pm UTC](https://discuss.elastic.co/t/unable-to-insert-data-to-opentsdb/32267/1 "2015-10-15T12:36:33Z")

</div>

Hello all:

I am trying to insert data from RabbitMQ to OpenTSDB. I can not see why is not inserting the data:  
Metric opc\_ignition.test has been created manually , but I have also set the option to create automatically.  
Data sent to Rabbit is JSON formatted.  
Also I have tested to insert the data manually using telnet with success  
put opc\_ignition.test 1356998400 42.5 sensor=ns\_1\_s\_\_Demo\_\_Meta\_Refrigeration\_Compressor1\_pressureSuction

Appreciate your comments and help

Thanks

**Data coming from RabbitMQ:**  
{"metric":"opc\_ignition.test","timestamp":1356998400,"OPCValue":42.5,"tags":"sensor=ns\_1\_s\_\_Demo\_\_Meta\_Refrigeration\_Compressor1\_pressureSuction"}

**Logstash Config file:**

input {  
rabbitmq {  
exclusive =\> false  
host =\> 'xxx.xxx.xxx.xxx'  
password =\> 'guest'  
user =\> 'guest'  
vhost =\> '/'  
auto\_delete =\> false  
durable =\> true  
exchange =\> "opc\_ignition"  
queue =\> "opc\_data"  
threads =\> 8}  
}

output {  
opentsdb {  
debug =\> true  
#host =\> 'localhost'  
metrics =\> [  
"{metric}",  
"{timestamp}",  
"{OPCvalue}",  
"{tags}",  
"{@version}",  
"{@timestamp}"

```
    ]
}
stdout { codec => rubydebug }

```

}

**Debug logger:**

output received {:event=\>{"metric"=\>"opc\_ignition.test", "timestamp"=\>1356998400, "OPCValue"=\>42.5, "tags"=\>"sensor=ns\_1\_s\_\_Demo\_\_Meta\_Refrigeration\_Compressor1\_pressureSuction", "@version"=\>"1", "@timestamp"=\>"2015-10-15T11:13:26.800Z"}, :level=\>:debug, :file=\>"(eval)", :line=\>"25", :method=\>"output\_func"}  
{  
"metric" =\> "opc\_ignition.test",  
"timestamp" =\> 1356998400,  
"OPCValue" =\> 42.5,  
"tags" =\> "sensor=ns\_1\_s\_\_Demo\_\_Meta\_Refrigeration\_Compressor1\_pressureSuction",  
"@version" =\> "1",  
"@timestamp" =\> "2015-10-15T11:13:26.800Z"  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:26am UTC](https://discuss.elastic.co/t/unable-to-insert-data-to-opentsdb/32267/2 "2017-07-06T05:26:27Z")

</div>

Closed on July 6, 2017, 5:26am UTC


