# Logstash, filebeat and http poller

**URL:** <https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672>\
**Category:** Logstash\
**Created:** [October 8, 2019, 12:41pm UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672 "2019-10-08T12:41:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dub](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@dub](https://discuss.elastic.co/u/dub)\
**Post date:** [October 8, 2019, 12:41pm UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672/1 "2019-10-08T12:41:45Z")

</div>

Hi all

We are currently using filebeat and grok filter to extract a document number from a text file. now we would like to receive additional information about the document that is not in the same file.

is there a way after we received the document number to request additional information from a web service?

We already found http poller as input plugin but is there a way to combine this?

many thanks for your help in advance!  
/dub

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 8, 2019, 12:43pm UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672/2 "2019-10-08T12:43:55Z")

</div>

Use an [http](https://www.elastic.co/guide/en/logstash/current/plugins-filters-http.html) filter?

---

<div class="post-metadata">

**Author:** ![dub](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@dub](https://discuss.elastic.co/u/dub)\
**Post date:** [October 9, 2019, 5:38am UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672/3 "2019-10-09T05:38:24Z")

</div>

Isn't the http filter only for REST APIs?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 9, 2019, 1:07pm UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672/4 "2019-10-09T13:07:41Z")

</div>

"The HTTP filter provides integration with external web services/REST APIs."

You said you wanted to get additional information from a web service. I don't think the http filter actually requires that the service satisfy all of the REST constraints.

---

<div class="post-metadata">

**Author:** ![dub](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@dub](https://discuss.elastic.co/u/dub)\
**Post date:** [October 22, 2019, 2:20pm UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672/5 "2019-10-22T14:20:17Z")

</div>

hi badger and sorry for my late reply.

i tried the http filter but unfortunately without success. http filter always sends content-type: text/plain, we need text/xml 🙄

see also [https://github.com/logstash-plugins/logstash-filter-http/issues/15](https://github.com/logstash-plugins/logstash-filter-http/issues/15)

---

<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:** [November 19, 2019, 2:20pm UTC](https://discuss.elastic.co/t/logstash-filebeat-and-http-poller/202672/6 "2019-11-19T14:20:18Z")

</div>

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