# Parsing quoted and escaped json events

**URL:** <https://discuss.elastic.co/t/parsing-quoted-and-escaped-json-events/269233>\
**Category:** Logstash\
**Created:** [April 5, 2021, 12:38pm UTC](https://discuss.elastic.co/t/parsing-quoted-and-escaped-json-events/269233 "2021-04-05T12:38:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonT123](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@LeonT123](https://discuss.elastic.co/u/LeonT123)\
**Post date:** [April 5, 2021, 12:38pm UTC](https://discuss.elastic.co/t/parsing-quoted-and-escaped-json-events/269233/1 "2021-04-05T12:38:23Z")

</div>

Hi  
I'm trying to find a way to parse a JSON encoded message like this. I do not know if filebeat is a good choice here or logstash is better one.

the events are look like this and I'm looking for a way to extract the **"message" portion which has a JSON object in it.**

`"{\"log\": \"text\", \"events\": \"12\", \"message\": \"some text here then an embedded json {\\\"fieldA\\\": \\\"ValueA\\\"}\"}"`

Any Idea?  
Thanks

---

<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:** [May 3, 2021, 12:39pm UTC](https://discuss.elastic.co/t/parsing-quoted-and-escaped-json-events/269233/2 "2021-05-03T12:39:05Z")

</div>

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