# How does we can implement ingest pipeline in runtime

**URL:** <https://discuss.elastic.co/t/how-does-we-can-implement-ingest-pipeline-in-runtime/293830>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [January 9, 2022, 5:59pm UTC](https://discuss.elastic.co/t/how-does-we-can-implement-ingest-pipeline-in-runtime/293830 "2022-01-09T17:59:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadiveti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kadiveti/32/79949_2.png) [@kadiveti](https://discuss.elastic.co/u/kadiveti)\
**Post date:** [January 9, 2022, 5:59pm UTC](https://discuss.elastic.co/t/how-does-we-can-implement-ingest-pipeline-in-runtime/293830/1 "2022-01-09T17:59:10Z")

</div>

Hi Team,

I created a ingest pipeline like below.

PUT \_ingest/pipeline/test2  
{  
"description": "Test the pipe line",  
"processors": [  
{  
"remove": {  
"field": "account\_number"  
},  
"set": {  
"field": "\_source.fullname",  
"value": "{{\_source.firstname}} {{\_source.lastname}}"  
},  
"convert": {  
"field": "age",  
"type": "string"  
}  
}  
]  
}

It is working at the time of reindexing.

POST \_reindex  
{  
"source": {  
"index": "sample-1"  
},  
"dest": {  
"index": "accountsbanks"  
, "pipeline": "test2"  
}  
}

But when I add the documents after reindexing it's not working.

POST \_bulk  
{ "index" : {"\_index" : "accountsbanks", "\_id" : "1003" }}  
{ "account\_number" : 13, "firstname" : "Nanette", "address" : "789 Madison Street", "balance" : 46812, "gender" : "F", "city" : "Nogal", "employer" : "Quility", "state" : "VA", "transactions" : 4, "age" : 28, "email" : "[nanettebates@quility.com](mailto:nanettebates@quility.com)", "lastname" : "Bates"}

Could you please help me how does I can apply when I add this extra documents after applying pipeline

---

<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:** [January 9, 2022, 8:53pm UTC](https://discuss.elastic.co/t/how-does-we-can-implement-ingest-pipeline-in-runtime/293830/2 "2022-01-09T20:53:45Z")

</div>

Try with:

```
POST _bulk?pipeline=test2
```

---

<div class="post-metadata">

**Author:** ![kadiveti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kadiveti/32/79949_2.png) [@kadiveti](https://discuss.elastic.co/u/kadiveti)\
**Post date:** [January 10, 2022, 3:44pm UTC](https://discuss.elastic.co/t/how-does-we-can-implement-ingest-pipeline-in-runtime/293830/3 "2022-01-10T15:44:15Z")

</div>

> [@dadoonet](#):
>
> `?pipeline=test2`

It worked. Thanks

---

<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:** [February 7, 2022, 3:44pm UTC](https://discuss.elastic.co/t/how-does-we-can-implement-ingest-pipeline-in-runtime/293830/4 "2022-02-07T15:44:17Z")

</div>

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