Hello, I have nested json type log messages like below being forwarded to splunk - {
"timeStamp": "2021-03-11T07:45:49.780000+00:00",
"status": "deactive",
"deviceId": "uuid12345",
"details": {
"Device:Information": {
"Type": "Apple",
"Content": {
"uuid12345": {
"Name": "IOS",
"Version": "14.4"
}
}
}
}
} I'd like to generate a table like below out of all such log messages - deviceId Name Version uuid12345 IOS 14.4 uuid12346 Android 8.1 I am aware that a table of fields can be easily created using table command or stats (to get counts by Name and Version), however the problem with this log message structure is that the nested json path `details.Device:Information.Content` contains a key with value `uuid12345` which is dynamic in nature. Therefore, a query like this doesn't work as I need since the wildcard character seem to create one column for each interpreted value like `details.Device:Information.Content.uuid12345.Name`, `details.Device:Information.Content.uuid12346.Name`, `details.Device:Information.Content.uuid12345.Version`, `details.Device:Information.Content.uuid12346.Version` - | table deviceId, details.Device:Information.Content.*.Name, details.Device:Information.Content.*.Version Is it possible to get this information extracted into a table like I described above? Would it be possible to extract `Name` and `Version` as fields so that I don't have to use full json path in table or stats command? Thanks for your help in advance.
... View more