# Logstash: Calling webservice in filter plugin for preprocesssing

**URL:** <https://discuss.elastic.co/t/logstash-calling-webservice-in-filter-plugin-for-preprocesssing/52947>\
**Category:** Logstash\
**Created:** [June 16, 2016, 4:44am UTC](https://discuss.elastic.co/t/logstash-calling-webservice-in-filter-plugin-for-preprocesssing/52947 "2016-06-16T04:44:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![preehana](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@preehana](https://discuss.elastic.co/u/preehana)\
**Post date:** [June 16, 2016, 4:44am UTC](https://discuss.elastic.co/t/logstash-calling-webservice-in-filter-plugin-for-preprocesssing/52947/1 "2016-06-16T04:44:47Z")

</div>

Hello All,

I am actually taking beats as an input and I need to pre-process the data in the filter section of logstash before sending to elastic search.The data should be pre-processed by calling a rest service in the filter [section.Is](http://section.Is) there any filter plugin to do so..?

The response from the web service is then to be added to the Elasticsearch.

Thanks in advance !

Regards,  
Preehana

---

<div class="post-metadata">

**Author:** ![val](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/val/32/138203_2.png) [@val](https://discuss.elastic.co/u/val)\
**Post date:** [June 16, 2016, 6:05am UTC](https://discuss.elastic.co/t/logstash-calling-webservice-in-filter-plugin-for-preprocesssing/52947/2 "2016-06-16T06:05:54Z")

</div>

The [logstash-filter-rest](https://github.com/lucashenning/logstash-filter-rest) plugin should help.

You can get more context about this plugin in the [original issue](https://github.com/elastic/logstash/issues/3489).

---

<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, 4:52am UTC](https://discuss.elastic.co/t/logstash-calling-webservice-in-filter-plugin-for-preprocesssing/52947/3 "2017-07-06T04:52:35Z")

</div>


