# How to replace field with another field value for entire index?

**URL:** <https://discuss.elastic.co/t/how-to-replace-field-with-another-field-value-for-entire-index/159810>\
**Category:** Elasticsearch\
**Created:** [December 6, 2018, 9:45pm UTC](https://discuss.elastic.co/t/how-to-replace-field-with-another-field-value-for-entire-index/159810 "2018-12-06T21:45:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BHAVIK\_CHITRODA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavik_chitroda/32/41947_2.png) [@BHAVIK\_CHITRODA](https://discuss.elastic.co/u/BHAVIK_CHITRODA)\
**Post date:** [December 6, 2018, 9:45pm UTC](https://discuss.elastic.co/t/how-to-replace-field-with-another-field-value-for-entire-index/159810/1 "2018-12-06T21:45:55Z")

</div>

Hi, I am new to Elasticsearch and still trying to figure the APIs for update and modifying documents/data on elasticsearch indexes.

I forwarded certain logs from Logstash to ES indexes. My logstash file is pretty complex and has multiple parsers. I forgot to use date filter for a set of logs. Now I have 10k logs showing in Kibana with wrong @timetamp value. I have a field called **"createdOn"** that I want to use as @timestamp

How can I replace the value of @timestamp with createdOn field for all logs in that index without resending the logs from logstash?

Please help.

Thank you

---

<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:** [January 3, 2019, 9:45pm UTC](https://discuss.elastic.co/t/how-to-replace-field-with-another-field-value-for-entire-index/159810/2 "2019-01-03T21:45:56Z")

</div>

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