Hi All,
Trying to split a single json file into multiple one's and then to output those single files
Could someone please help to get this done
Input Data is json file
{
"Computer": "node2",
"ContainerID": "cbcf",
"LogEntry": "Logs",
"LogEntrySource": "stdout",
"SourceSystem": "Containers",
"TimeGenerated": "2023-03-06T02:29:40.4069040Z",
"Type": "ContainerLog",
"_Internal_WorkspaceResourceId": "message"
}
{
"Computer": "node3",
"ContainerID": "cbdf",
"LogEntry": "Logs",
"LogEntrySource": "stdout",
"SourceSystem": "Containers",
"TimeGenerated": "2023-03-07T02:29:40.4069040Z",
"Type": "ContainerLog",
"_Internal_WorkspaceResourceId": "message"
}
Expected Output
Event#1
{
"Computer": "node2",
"ContainerID": "cbcf",
"LogEntry": "Logs",
"LogEntrySource": "stdout",
"SourceSystem": "Containers",
"TimeGenerated": "2023-03-06T02:29:40.4069040Z",
"Type": "ContainerLog",
"_Internal_WorkspaceResourceId": "message"
}
Event#2
{
"Computer": "node3",
"ContainerID": "cbdf",
"LogEntry": "Logs",
"LogEntrySource": "stdout",
"SourceSystem": "Containers",
"TimeGenerated": "2023-03-07T02:29:40.4069040Z",
"Type": "ContainerLog",
"_Internal_WorkspaceResourceId": "message"
}