Hi All, Need to implement this urgently - tried all options including ruby / split etc but none of that works within google chronicle parser extension.
I have a simple requirement to concatenate field value from recurring field as per below. Please suggest how this can be implemented in parser extension. Input and expected output is as per below.. Thanks in advance.
I came across one more issue - when trying to map the concatenation result to the UDM field (which is mapped to metadata.description in the code you shared). Seems array's are overwritten and not appended in the extension - and I was not able to add this in any of the existing array fields.
The parser i m extending is GCP SCC threat and since i can't use any array fields, ended up using this to store hierarchy folders for GCP project:
"event.idm.read_only_udm.src.process.file.full_path" => "%{temp}"#Concat in Temp
Any thoughts on whether this is the right field or should i consider using any other please ?
Happy to know it worked. The concatenation token "temp" is a string field so it must be assigned to any string field, if you want to add/concatenate to an existing string field that is populated by the parser already, then you would to add the code block to the parser and you will have to maintain it with updates, as the token values do not persist between the parser and the parser extension unfortunately.
Same goes for arrays, but you would need to properly format "temp" as an array or add a key value to it and append it to the labels in the main parser block.