# How to replace %5C with backslash

**URL:** <https://discuss.elastic.co/t/how-to-replace-5c-with-backslash/51866>\
**Category:** Logstash\
**Created:** [June 5, 2016, 2:32am UTC](https://discuss.elastic.co/t/how-to-replace-5c-with-backslash/51866 "2016-06-05T02:32:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eprst](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@eprst](https://discuss.elastic.co/u/eprst)\
**Post date:** [June 5, 2016, 2:32am UTC](https://discuss.elastic.co/t/how-to-replace-5c-with-backslash/51866/1 "2016-06-05T02:32:10Z")

</div>

i need to replace %5C in field some fields with backslash, the problem is that i can't do it with mutate gsub. i've tried replacement string : '','\','\\','\\\','\\\\' nothing is working. is there any solution for this?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 8, 2016, 5:52am UTC](https://discuss.elastic.co/t/how-to-replace-5c-with-backslash/51866/2 "2016-06-08T05:52:14Z")

</div>

Have a look at the urldecode filter.

---

<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:** [July 6, 2017, 4:54am UTC](https://discuss.elastic.co/t/how-to-replace-5c-with-backslash/51866/3 "2017-07-06T04:54:15Z")

</div>


