JSON LInes to JSON ARRAY

Hi All,
We receive json lines from logs.
would need to aggregate this json lines to json Array
Sample:
{
"source" : "Request"
"target": "Request_parsed"
}
{
"source" : "Request1"
"target": "Request_parsed1"
}

Output
[
{
"output": {
"source": "Request",
"target": "Request_parsed"
}
},
{
"output": {
"source": "Request1",
"target": "Request_parsed1"
}
}
]

through mutate filter can add the field , would need to merge all fields.

You can combine events using an aggregate filter.

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