# How to install http\_pollar plugin manually in Logstash?

**URL:** <https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308>\
**Category:** Logstash\
**Created:** [September 15, 2015, 9:54am UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308 "2015-09-15T09:54:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Post date:** [September 15, 2015, 9:54am UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308/1 "2015-09-15T09:54:00Z")

</div>

How to install http\_pollar plugin manually in Logstash?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 15, 2015, 11:10am UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308/2 "2015-09-15T11:10:29Z")

</div>

Not sure exactly what you mean by manual, but the second paragraph of the [plugin documentation](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html) says

> This plugin does not ship with Logstash by default, but it is easy to install by running `bin/plugin install logstash-input-http_poller`.

Doesn't that work for you?

---

<div class="post-metadata">

**Author:** ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Post date:** [September 15, 2015, 2:38pm UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308/3 "2015-09-15T14:38:27Z")

</div>

we have already tried this command but our proxy is not allowing us to install this plugin form web.  
So we have tried installing plugin using manual steps listed in Github (and installation is successful now) but still showing the error as given below

[ServerName~bin]$ ./plugin install /elkt/software/logstash-input-http\_poller-master/logstash-input-http\_poller-1.1.2.gem  
Validating /elkt/software/logstash-input-http\_poller-master/logstash-input-http\_poller-1.1.2.gem  
Installing logstash-input-http\_poller  
Installation successful  
[Server Name~bin]$ ./logstash -f http\_pollar.conf  
The error reported is:

> Couldn't find any input plugin named 'http\_poller'. Are you sure this is correct? Trying to load the http\_poller input plugin resulted in this error: no such file to load -- logstash/inputs/http\_poller

---

<div class="post-metadata">

**Author:** ![muratagenc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muratagenc/32/5858_2.png) [@muratagenc](https://discuss.elastic.co/u/muratagenc)\
**Post date:** [November 12, 2015, 1:32am UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308/4 "2015-11-12T01:32:24Z")

</div>

you must download the gem file from: [https://rubygems.org/gems/logstash-input-http\_poller/versions/2.0.2](https://rubygems.org/gems/logstash-input-http_poller/versions/2.0.2)  
permission problem with Gemfile under /logstash? solution;  
chmod o+w Gemfile

then swicth to root and install;  
root@dpsubuntuazure:/opt/logstash# ./bin/plugin install logstash-input-http\_poller-2.0.2.gem  
Validating logstash-input-http\_poller-2.0.2.gem  
Installing logstash-input-http\_poller  
Installation successful

done!

testing http\_poller  
the config file:

input {  
http\_poller {  
urls =\> {  
test1 =\> "[http://localhost:9200](http://localhost:9200)"  
test2 =\> {  
# Supports all options supported by ruby's Manticore HTTP client  
method =\> get  
url =\> "[http://localhost:9200/\_cluster/health](http://localhost:9200/_cluster/health)"  
headers =\> {  
Accept =\> "application/json"  
}  
auth =\> {  
user =\> "AzureDiamond"  
password =\> "hunter2"  
}  
}  
}  
request\_timeout =\> 60  
interval =\> 60  
codec =\> "json"  
# A hash of request metadata info (timing, response headers, etc.) will be sent here  
metadata\_target =\> "http\_poller\_metadata"  
}  
}

output {  
stdout {  
codec =\> rubydebug  
}  
}

test command:  
./logstash -f logstash\_test.conf

output:  
Default settings used: Filter workers: 1  
Logstash startup completed  
{  
"cluster\_name" =\> "elasticsearch",  
"status" =\> "yellow",  
"timed\_out" =\> false,  
"number\_of\_nodes" =\> 1,  
"number\_of\_data\_nodes" =\> 1,  
"active\_primary\_shards" =\> 16,  
"active\_shards" =\> 16,  
"relocating\_shards" =\> 0,  
"initializing\_shards" =\> 0,  
"unassigned\_shards" =\> 16,  
"delayed\_unassigned\_shards" =\> 0,  
"number\_of\_pending\_tasks" =\> 0,  
"number\_of\_in\_flight\_fetch" =\> 0,  
"task\_max\_waiting\_in\_queue\_millis" =\> 0,  
"active\_shards\_percent\_as\_number" =\> 50.0,  
"@version" =\> "1",  
"@timestamp" =\> "2015-11-12T01:24:01.469Z",  
"http\_poller\_metadata" =\> {  
"name" =\> "test2",  
"host" =\> "dpsubuntuazure",  
"request" =\> {  
"headers" =\> {  
"Accept" =\> "application/json"  
},  
....

---

<div class="post-metadata">

**Author:** ![RohanKumbhar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohankumbhar/32/23649_2.png) [@RohanKumbhar](https://discuss.elastic.co/u/RohanKumbhar)\
**Post date:** [November 18, 2015, 4:48am UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308/5 "2015-11-18T04:48:13Z")

</div>

Thanks !

---

<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:22am UTC](https://discuss.elastic.co/t/how-to-install-http-pollar-plugin-manually-in-logstash/29308/6 "2017-07-06T05:22:27Z")

</div>


