Assistance Needed for Parsing JSON Array in Google Security Operations

Hi all,

I am new to Google Security Operations and am currently working on creating a custom parser. However, I am encountering issues when trying to create a UDM for a JSON array that lacks a parent object, which is preventing me from looping through it.

Input Json

[
{
"serviceId": 1012,
"assetType": "Consumer",
"shortVin": 64,
"vehicleModel": 436,
"affectedAssets": "KH35"
},
{
"serviceId": 4564,
"assetType": "Consumer",
"shortVin": 234,
"vehicleModel": 46,
"affectedAssets": "N435"
}
]

Error
generic::unknown: pipeline.ParseLogEntry failed: LOG_PARSING_CBN_ERROR: "generic::invalid_argument: pipeline failed: filter json (0) failed: invalid JSON: json: cannot unmarshal array into Go value of type map[string]interface {}"generic::unknown: pipeline.ParseLogEntry failed: LOG_PARSING_CBN_ERROR: "generic::invalid_argument: pipeline failed: filter json (0) failed: invalid JSON: json: cannot unmarshal array into Go value of type map[string]interface {}"

Any guidance or help on how to resolve this issue would be greatly appreciated.

Thank you!

0 8 988
8 REPLIES 8