# Call REST API using ingest pipeline script processor

**URL:** <https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468>\
**Category:** Elasticsearch\
**Created:** [October 11, 2017, 5:29am UTC](https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468 "2017-10-11T05:29:20Z")\
**Posts on this page:** 5\
**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:** [October 11, 2017, 5:29am UTC](https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468/1 "2017-10-11T05:29:20Z")

</div>

Hello Team,

Is is possible to call any REST API through the ingest pipeline script processor?

Thanks,  
Rohan

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 11, 2017, 5:51am UTC](https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468/2 "2017-10-11T05:51:45Z")

</div>

No you can’t. And you should not.

Latency will be always bad IMO and you are going to slow down dramatically your injection process.

If you have only 1 doc per second or less that might be possible though. But you need to write your own ingest plugin for that.

(I wish I had more free time to finish mine)

You can probably look at logstash to do such a thing although I’m unsure there is an http filter plugin available.

---

<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:** [October 11, 2017, 8:01am UTC](https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468/3 "2017-10-11T08:01:06Z")

</div>

Thanks @dadoonet ,

Yes, through logstash its possible using ruby filter plugin but i'm using only filebeat--\>ingest pipeline--\>elasticsearch.

So wanted to check if this is possible to call rest api through ingest pipeline.

Thanks,  
Rohan

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 11, 2017, 8:14am UTC](https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468/4 "2017-10-11T08:14:37Z")

</div>

It’s not.

---

<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 8, 2017, 8:14am UTC](https://discuss.elastic.co/t/call-rest-api-using-ingest-pipeline-script-processor/103468/5 "2017-11-08T08:14:54Z")

</div>

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