HTTP request in Ingest Pipeline

Hi,

I have a document like the below,

{
   "result":{
      "id":"1",
      "date":"2020-03-31",
      "title":"Wait for It",
      "artist":"Leslie Odom Jr.",
      "spotify_url":"https://open.spotify.com/track/7EqpEBPOohgk7NnKvBGFWo?si=eceqQWGATkO1HJ7n-gKOEQ"
   },
   "meta":{}
}

and I want to make a Rest call to my other server in the ingest pipeline and pass the id there.

curl --location --request GET 'https://jsonplaceholder.typicode.com/todos/1'

after getting the result from the server, will append it to the meta key in the document and then save it.

Can anyone help me, how can i achieve this?

@dadoonet

There is no ingest processor which can do this AFAIK.
You would need to build it by yourself I believe.

Or you could try with the enrich processor. See Enrich your data | Elasticsearch Guide [7.14] | Elastic

2 Likes

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