# \[Pipeline\] to rename column name of doc before indexing

**URL:** https://discuss.elastic.co/t/pipeline-to-rename-column-name-of-doc-before-indexing/236375
**Category:** Elastic Stack
**Created:** [June 9, 2020, 3:27pm UTC](https://discuss.elastic.co/t/pipeline-to-rename-column-name-of-doc-before-indexing/236375 "2020-06-09T15:27:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jalpesh1](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jalpesh1](https://discuss.elastic.co/u/Jalpesh1)
#### Post date: [June 9, 2020, 3:27pm UTC](https://discuss.elastic.co/t/pipeline-to-rename-column-name-of-doc-before-indexing/236375/1 "2020-06-09T15:27:48Z")

</div>

Hi Team ,

We want to rename column name of doc before indexing.  
Please find below example :

![before index](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0fcce5517f1732507c2cd696a9ef79d9512c72aa.png)

in above example we have **tag.customer\_id** column name and we want to rename it to **customerID** before indexing doc as below.

![after rename](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e1e57a42c3836c23be08455a67b89bb2fba29fe1.png)

in future data will come as **tag.customer\_id** but it should index as **customerID**

Please suggest how to use pipeline for this.

Thanks & Regards,  
Jalpesh

---

<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 4, 2022, 8:01am UTC](https://discuss.elastic.co/t/pipeline-to-rename-column-name-of-doc-before-indexing/236375/2 "2022-11-04T08:01:47Z")

</div>


