# How to replace a String with another string in a field while Re-indexing an old Index

**URL:** <https://discuss.elastic.co/t/how-to-replace-a-string-with-another-string-in-a-field-while-re-indexing-an-old-index/49905>\
**Category:** Logstash\
**Created:** [May 12, 2016, 1:46pm UTC](https://discuss.elastic.co/t/how-to-replace-a-string-with-another-string-in-a-field-while-re-indexing-an-old-index/49905 "2016-05-12T13:46:33Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![sanju1323](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sanju1323](https://discuss.elastic.co/u/sanju1323)\
**Post date:** [June 7, 2016, 10:39am UTC](https://discuss.elastic.co/t/how-to-replace-a-string-with-another-string-in-a-field-while-re-indexing-an-old-index/49905/17 "2016-06-07T10:39:52Z")

</div>

@fbaligand

Need one more help.  
Can you please look into this issue. I'm not able to index this.

> [@Index a text file into elasticsearch using logstash](https://discuss.elastic.co/t/index-a-text-file-into-elasticsearch-using-logstash/51584):
>
> Is there a way to index a text file which has the data in the following format. Date Time : 23/05/2016-12.01.38.AM File : log Reason : parser is not working Stack : at java.util.package(Exception e) at java.util.package(Exception1 e) ^^-------------------------------------------------------------------^^ Date Time : 23/05/2016-12.01.38.AM File : log Reason : parser is working Stack : at java.lang.package(Exception e) at java.lang.package(Exception1 e) ^…

Please help me

---

_[View the full topic](https://discuss.elastic.co/t/how-to-replace-a-string-with-another-string-in-a-field-while-re-indexing-an-old-index/49905)._
