Thanks for you replies. Apologies for the not quite correct example, it was a quick rip from the formatted output which i sort of JSONafined when i stripped the values. Firstly, I originally was using an index time sed to strip the nulls but was having issues keeping it contained to just the first level.... Also needed an extract prior to the strip to somehow intelligently only collect the name of the node when the node is non-null... Thanks PickleRick for the regex ill try it out. Here is a more accurate version of the example.. which i have validated this time 🙂 In this case the event name would be "eventtype3". { "header": { "eId": "1234567890", "timestamp": "12345678","src": "10.0.0.0"}, "eventtype1": null, "eventtype2": null, "eventtype3": { "context": {"opId": "abc123", "method": "GET"}, "request": {"payload": "value","params": "value"}, "response": {"payload": "value","params": "value"} }, "eventtype4": null }
... View more