# Read log files from the http url

**URL:** <https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649>\
**Category:** Logstash\
**Created:** [April 26, 2017, 4:42am UTC](https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649 "2017-04-26T04:42:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hareesh](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hareesh](https://discuss.elastic.co/u/Hareesh)\
**Post date:** [April 26, 2017, 4:42am UTC](https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649/1 "2017-04-26T04:42:55Z")

</div>

I am trying to read the log file from a remote location. Example, All log files are available in the below url:

http://host\_name:port/path1/path2

And the log file name would be as follows (Time format)

- web\_server\_log.log
- web\_server\_log.log\_yyyy\_mm\_dd\_hh\_mm\_ss

Can I know how this can be configured in logstash configuration file in the input block?

I was trying to use the 'logstash-input-http', but it did not work. http\_poll also tried, it polls complete file instead of only the changed files.

---

<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:** [April 26, 2017, 5:14am UTC](https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649/2 "2017-04-26T05:14:15Z")

</div>

This is a bad idea. Logstash won't be able to fetch only new data so every time it's run it'll fetch everything.

---

<div class="post-metadata">

**Author:** ![Hareesh](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@Hareesh](https://discuss.elastic.co/u/Hareesh)\
**Post date:** [April 27, 2017, 6:54am UTC](https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649/3 "2017-04-27T06:54:04Z")

</div>

is there any input plugin available which tails the log files over http?

---

<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:** [April 27, 2017, 7:34am UTC](https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649/4 "2017-04-27T07:34:19Z")

</div>

> is there any input plugin available which tails the log files over http?

No.

---

<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:** [May 25, 2017, 7:48am UTC](https://discuss.elastic.co/t/read-log-files-from-the-http-url/83649/5 "2017-05-25T07:48:47Z")

</div>

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