# Groke pattern request

**URL:** <https://discuss.elastic.co/t/groke-pattern-request/102758>\
**Category:** Logstash\
**Created:** [October 4, 2017, 8:28pm UTC](https://discuss.elastic.co/t/groke-pattern-request/102758 "2017-10-04T20:28:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amol\_Haval](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Amol\_Haval](https://discuss.elastic.co/u/Amol_Haval)\
**Post date:** [October 4, 2017, 8:28pm UTC](https://discuss.elastic.co/t/groke-pattern-request/102758/1 "2017-10-04T20:28:01Z")

</div>

I have below message from logstash input . I want to parse below json within message  
{  
"message": "\u0000\u0000\u0000\u0000\u0004\u0002�\u0006{"\_id" : {"$oid" : "59d03207e4b0db37e9f741e9"},"deviceId" : "{4692852a-80ba-470d-a26b-2f28cc160b51}","userType" : "windows","product" : "ptdesktop","version" : "7.1.0.0222","feature" : "app^track^session^1","ip" : "70.176.75.122","country" : "United States","long" : "-112.1851","lat" : "33.5381","city" : "Glendale","Region" : "AZ","userId" : "3f3865b5-fdd9-4e12-a22f-54593557b12c","createdDate" : {"$date" : 1506816519309}}\u0000\u000epTracer\u000epTracer8packetTracer.packetTracer\_v8�с�\u000b\n\u0002��ӊ�ܬ�G\u0000\u0002\u0002c\u0002����W",  
"@version": "1",  
"@timestamp": "2017-10-03T05:03:10.555Z"  
}

want to parse below json within message

what will be my groke filter pattern

Json which i am interested in

{"\_id" : {"$oid" : "59d03207e4b0db37e9f741e9"},"deviceId" : "{4692852a-80ba-470d-a26b-2f28cc160b51}","userType" : "windows","product" : "ptdesktop","version" : "7.1.0.0222","feature" : "app^track^session^1","ip" : "70.176.75.122","country" : "United States","long" : "-112.1851","lat" : "33.5381","city" : "Glendale","Region" : "AZ","userId" : "3f3865b5-fdd9-4e12-a22f-54593557b12c","createdDate" : {"$date" : 1506816519309}}

---

<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:** [November 1, 2017, 8:28pm UTC](https://discuss.elastic.co/t/groke-pattern-request/102758/2 "2017-11-01T20:28:05Z")

</div>

Closed on November 1, 2017, 8:28pm UTC

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