# InfluxDB input plugin for logstash

**URL:** <https://discuss.elastic.co/t/influxdb-input-plugin-for-logstash/107670>\
**Category:** Logstash\
**Created:** [November 15, 2017, 6:34am UTC](https://discuss.elastic.co/t/influxdb-input-plugin-for-logstash/107670 "2017-11-15T06:34:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiranilla](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kiranilla](https://discuss.elastic.co/u/kiranilla)\
**Post date:** [November 15, 2017, 6:34am UTC](https://discuss.elastic.co/t/influxdb-input-plugin-for-logstash/107670/1 "2017-11-15T06:34:39Z")

</div>

Hi,

As there is a output plugin for influxDB in Logstash ([https://www.elastic.co/guide/en/logstash/current/plugins-outputs-influxdb.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-influxdb.html)), but not able to see any input plugin for it.  
Could you please provide an way or alternative for connecting to influxDB as an input in Logstash.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![kiranilla](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kiranilla](https://discuss.elastic.co/u/kiranilla)\
**Post date:** [November 22, 2017, 1:47pm UTC](https://discuss.elastic.co/t/influxdb-input-plugin-for-logstash/107670/2 "2017-11-22T13:47:10Z")

</div>

I have got some other approach for connecting to **influxDB as an input plugin** :

```
input {
  http_poller {
    urls => {
      cpu => {
        user => " *****"
        password => " *****"
        url => "http://localhost:8086/query?pretty=true&db=inspectit&q=SELECT+*+FROM+cpu"
        headers => {
          Accept => "application/json
        }
     }  
    }
 }
}

filter {
split {
    field => "results"
}
split {
    field => "[results][series]"
}
split {
    field => "[results][series][values]"
	
	
}
if[name]== "cpu"
{
	ruby 
	{

	 #event.set(event.get("[results][series][columns][0]"),event.get("[results][series][values][0])")
	  code => '
				
				 event.set(event.get("[results][series][columns][0]"),event.get("[results][series][values][0]"))
	
  '

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

---

<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:** [December 20, 2017, 1:47pm UTC](https://discuss.elastic.co/t/influxdb-input-plugin-for-logstash/107670/3 "2017-12-20T13:47:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
