# LogStash - Data-enhancement at Insert

**URL:** https://discuss.elastic.co/t/logstash-data-enhancement-at-insert/202287
**Category:** Logstash
**Created:** [October 4, 2019, 6:31am UTC](https://discuss.elastic.co/t/logstash-data-enhancement-at-insert/202287 "2019-10-04T06:31:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![LeFrancois](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lefrancois/32/55373_2.png) [@LeFrancois](https://discuss.elastic.co/u/LeFrancois)
#### Post date: [October 4, 2019, 6:31am UTC](https://discuss.elastic.co/t/logstash-data-enhancement-at-insert/202287/1 "2019-10-04T06:31:30Z")

</div>

Hello !

I am currently looking to considerably improve our data-enhancement and ingesting pipeline by trying to give more responsabilities to ELK.

Currently before inserting time of a document, I call few APIs (gRPC but can be migrating to REST pretty easily) to enhance it, add some fields and once the response received I transform the data and insert it.

I know that LogStash is pretty efficient to tansform the data, I would like to know if there is any mechanism inside LogStash to call some APIs to add some fields to a given document at Ingest Time inside LogStash ? If yes, is that a good pattern ?

Best !

---

<div class="post-metadata">

### Author: ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)
#### Post date: [October 4, 2019, 6:51am UTC](https://discuss.elastic.co/t/logstash-data-enhancement-at-insert/202287/2 "2019-10-04T06:51:17Z")

</div>

Yes you can use [http filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-http.html) for that.

---

<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 1, 2019, 6:51am UTC](https://discuss.elastic.co/t/logstash-data-enhancement-at-insert/202287/3 "2019-11-01T06:51:22Z")

</div>

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