# How can i give Restful API as input in log stash cons file

**URL:** https://discuss.elastic.co/t/how-can-i-give-restful-api-as-input-in-log-stash-cons-file/70452
**Category:** Logstash
**Created:** [January 3, 2017, 3:27pm UTC](https://discuss.elastic.co/t/how-can-i-give-restful-api-as-input-in-log-stash-cons-file/70452 "2017-01-03T15:27:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)
#### Post date: [January 3, 2017, 3:27pm UTC](https://discuss.elastic.co/t/how-can-i-give-restful-api-as-input-in-log-stash-cons-file/70452/1 "2017-01-03T15:27:46Z")

</div>

I want to use Restfull API as input for logstsh.  
Which plugin i can use to get data by using RESTFUL API.

Please provide logstash conf file.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 3, 2017, 10:54pm UTC](https://discuss.elastic.co/t/how-can-i-give-restful-api-as-input-in-log-stash-cons-file/70452/2 "2017-01-03T22:54:59Z")

</div>

See [https://www.elastic.co/guide/en/logstash/5.1/plugins-inputs-http\_poller.html](https://www.elastic.co/guide/en/logstash/5.1/plugins-inputs-http_poller.html)

---

<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: [January 31, 2017, 10:55pm UTC](https://discuss.elastic.co/t/how-can-i-give-restful-api-as-input-in-log-stash-cons-file/70452/3 "2017-01-31T22:55:04Z")

</div>

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