Groke pattern request


(Amol Haval) #1

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}}


(system) #2

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