# Gsub replacing \\\\n with \\n

**URL:** <https://discuss.elastic.co/t/gsub-replacing-n-with-n/140517>\
**Category:** Logstash\
**Created:** [July 18, 2018, 10:56am UTC](https://discuss.elastic.co/t/gsub-replacing-n-with-n/140517 "2018-07-18T10:56:50Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tgaudin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tgaudin/32/32583_2.png) [@tgaudin](https://discuss.elastic.co/u/tgaudin)\
**Post date:** [July 18, 2018, 2:55pm UTC](https://discuss.elastic.co/t/gsub-replacing-n-with-n/140517/5 "2018-07-18T14:55:22Z")

</div>

You can take a look at this topic, I had a similar issue with backslashes and the workaround is a bit ugly [Parse nested key-values](https://discuss.elastic.co/t/parse-nested-key-values/139771/9)

---

_[View the full topic](https://discuss.elastic.co/t/gsub-replacing-n-with-n/140517)._
