# Enrich individual records with data from external REST calls

**URL:** <https://discuss.elastic.co/t/enrich-individual-records-with-data-from-external-rest-calls/151710>\
**Category:** Logstash\
**Created:** [October 9, 2018, 9:02pm UTC](https://discuss.elastic.co/t/enrich-individual-records-with-data-from-external-rest-calls/151710 "2018-10-09T21:02:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudhakar\_Madeti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhakar_madeti/32/42718_2.png) [@Sudhakar\_Madeti](https://discuss.elastic.co/u/Sudhakar_Madeti)\
**Post date:** [October 9, 2018, 9:02pm UTC](https://discuss.elastic.co/t/enrich-individual-records-with-data-from-external-rest-calls/151710/1 "2018-10-09T21:02:39Z")

</div>

Hello,

I am using Logstash to process some files using the File input plugin. The data consists of some some Key Value pairs and I am exporting that into the ElasticSearch. All works fine so far.

Now my requirement is that I need to enrich this data based on 3 different external systems which can be queried using REST APIs.

Can it be done in ElasticSearch by making 3 different REST calls and by merging the response with the original document or is there a way to achieve this using Logstash, before pumping the data into ElasticSearch ?

Speed is not an issue as a delay of a few minutes is acceptable for this.

Any suggestions on how this can be achieved ?

Thanks in advance.

Best regards,  
Sudhakar

---

<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 6, 2018, 9:02pm UTC](https://discuss.elastic.co/t/enrich-individual-records-with-data-from-external-rest-calls/151710/2 "2018-11-06T21:02:39Z")

</div>

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