I have data that looks something like this, coming in as JSON: time, application, feature, username, hostname The problem is that username and hostname are nested arrays, like this: {
application: app1
feature: feature1
timestamp: 01/29/2025 23:02:00 +0000
users: [
{
userhost: client1
username: user1
}
{
userhost: client2
username: user2
}
]
} and when the event shows up in splunk, userhost and username are converted to multi-value fields. _time application feature users{}.username users{}.userhost 01/29/2025 23:02:00 app1 feature1 user1 user2 client1 client2 I need an SPL method to convert these into individual events for the purposes of a search, so that I can perform ldap lookups on each hostname. mvexpand only works on one field at a time and doesn't recognize users or users{} as valid input, which loses the relationship between user1:client1 and user2:client2. How can I convert both arrays to individual events by array index, so that I preserve the relationship between username and hostname, like this: _time application feature users{}.username users{}.userhost 01/29/2025 23:02:00 app1 feature1 user1 client1 01/29/2025 23:02:00 app1 feature1 user2 client2
... View more