# Logatash input file from URL

**URL:** <https://discuss.elastic.co/t/logatash-input-file-from-url/29241>\
**Category:** Logstash\
**Created:** [September 14, 2015, 10:57am UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241 "2015-09-14T10:57:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)\
**Post date:** [September 14, 2015, 10:57am UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/1 "2015-09-14T10:57:03Z")

</div>

Hi,

I have a requirement where I need to put the file path as URL . Is it possible in logatash to put the file path as a URL ? and will it be real time ?  
ex:

> input  
> {  
> file  
> {  
> path =\> [https://www.google.com/jsonfile.log](https://www.google.com/jsonfile.log)  
> }  
> }

---

<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:** [September 14, 2015, 10:59am UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/2 "2015-09-14T10:59:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)\
**Post date:** [September 14, 2015, 1:41pm UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/3 "2015-09-14T13:41:21Z")

</div>

Hi warkolm,

Thank you for your reply  
I tried like

> input  
> {  
> http  
> {

> ```
> host => "localhost"
> port => 9200
> }
> 
> ```
> 
> }

> filter  
> {

> }  
> output  
> {  
> stdout { codec =\> "rubydebug"}  
> }

so that I can get the simple response from elasticsearch port .. elastic is up and running ..  
could you please let me know am I doing something wrong ?

It is showing an error : **Address already in use - bind - Address already in use: bind**

---

<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:** [September 14, 2015, 8:48pm UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/4 "2015-09-14T20:48:30Z")

</div>

Try using the poller input instead.

---

<div class="post-metadata">

**Author:** ![Navneet\_Mathpal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/navneet_mathpal/32/3677_2.png) [@Navneet\_Mathpal](https://discuss.elastic.co/u/Navneet_Mathpal)\
**Post date:** [September 15, 2015, 9:34am UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/5 "2015-09-15T09:34:58Z")

</div>

Hi Warkolrn,

Thank you , I am able to do it with http pooler, could you please let me know how to do the same with http input .  
and what are the differences between http input AND http\_pooler ?

---

<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:** [September 15, 2015, 10:38am UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/6 "2015-09-15T10:38:01Z")

</div>

You can't do it with http, that is the point.

If you read the docs it does explain what each does.

---

<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:29am UTC](https://discuss.elastic.co/t/logatash-input-file-from-url/29241/7 "2017-07-06T05:29:08Z")

</div>


