I have events that are coming in 'kinda' json format. I can't get KV_MODE=json to work so I was going to try and do the line breaking and field extraction manually. 2 sample events below. Please help.
{
"_id" : ObjectId("123456"),
"notificationId" : 1234567,
"notificationTime" : "4/9/2014 10:05:41 AM",
"user" : {
"userId" : 1235,
"userType" : "New Member",
"identifiers" : [
{
"identifier" : "123456",
"identifierType" : "Entity Key"
},
{
"identifier" : "123456",
"identifierType" : "GenKey"
}
],
"createdOnDate" : "2014-04-02T14:18:49-04:00"
},
"devices" : [
{
"activity" : [
{
"d1" : "0",
"d2" : "0",
"c1" : "0",
"s1" : "0",
"day" : "4/8/2014 12:00:00 AM"
},
{
"d1" : "0",
"d2" : "0",
"c1" : "0",
"s1" : "0",
"day" : "4/9/2014 12:00:00 AM"
}
],
"deviceId" : "1234567"
}
],
"__v" : 0
},
{
"_id" : ObjectId("123456"),
"notificationId" : 1234567,
"notificationTime" : "4/9/2014 10:05:41 AM",
"user" : {
"userId" : 1235,
"userType" : "New Member",
"identifiers" : [
{
"identifier" : "123456",
"identifierType" : "Entity Key"
},
{
"identifier" : "123456",
"identifierType" : "GenKey"
}
],
"createdOnDate" : "2014-04-02T14:18:49-04:00"
},
"devices" : [
{
"activity" : [
{
"d1" : "0",
"d2" : "0",
"c1" : "0",
"s1" : "0",
"day" : "4/8/2014 12:00:00 AM"
},
{
"d1" : "0",
"d2" : "0",
"c1" : "0",
"s1" : "0",
"day" : "4/9/2014 12:00:00 AM"
}
],
"deviceId" : "1234567"
}
],
"__v" : 0
},
... View more