# How do I read data from influxdb

**URL:** <https://discuss.elastic.co/t/how-do-i-read-data-from-influxdb/275711>\
**Category:** Elasticsearch\
**Created:** [June 11, 2021, 6:52pm UTC](https://discuss.elastic.co/t/how-do-i-read-data-from-influxdb/275711 "2021-06-11T18:52:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [June 11, 2021, 6:52pm UTC](https://discuss.elastic.co/t/how-do-i-read-data-from-influxdb/275711/1 "2021-06-11T18:52:41Z")

</div>

I have a need to read data from influxdb.

anyone has done this before can you give me example of input plugin for that?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [June 11, 2021, 7:22pm UTC](https://discuss.elastic.co/t/how-do-i-read-data-from-influxdb/275711/2 "2021-06-11T19:22:52Z")

</div>

I have found only one post regarding this and use something like this

input {  
http\_poller {  
urls =\> {  
cpu =\> {  
user =\> "sachin"  
password =\> "sachin"  
url =\> "[http://10.25.16.62:8086/query?pretty=true&db=houpxws&q=SELECT+](http://10.25.16.62:8086/query?pretty=true&db=houpxws&q=SELECT+)_+FROM+measurements"  
headers =\> { Accept =\> "application/json" }  
}  
}  
schedule =\> { cron =\> "_ \* \* \* \* UTC"}  
codec =\> "json"  
}

---

<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 9, 2021, 7:23pm UTC](https://discuss.elastic.co/t/how-do-i-read-data-from-influxdb/275711/3 "2021-07-09T19:23:14Z")

</div>

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