# Parse nested key-values

**URL:** <https://discuss.elastic.co/t/parse-nested-key-values/139771>\
**Category:** Logstash\
**Created:** [July 12, 2018, 1:54pm UTC](https://discuss.elastic.co/t/parse-nested-key-values/139771 "2018-07-12T13:54:09Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 17, 2018, 3:05pm UTC](https://discuss.elastic.co/t/parse-nested-key-values/139771/9 "2018-07-17T15:05:06Z")

</div>

Enable 'config.support\_escapes: true' in your logstash.yml and then try this

```
    mutate { gsub => ["message", "[\\\\]", "\\\\\\\\@@@@" ] }
    mutate { gsub => ["message", "@@@@", ""] }

```

You need the @@@@ junk because otherwise the final \ will escape the closing "

---

_[View the full topic](https://discuss.elastic.co/t/parse-nested-key-values/139771)._
