Splunk Search

Multi-value field grouping

boffhead
New Member

Hi,

I'm sending AWS SSM patching logs to splunk.  I'm transforming these via a Lambda and getting the following events: (snipped for brevity)

 

 

{
   <SNIP>
   missing_count: 0
   not_applicable_count: 1762
   operation_end_time: 2021-05-18T16:08:27.1678125Z
   operation_start_time: 2021-05-18T16:00:29.0000000Z
   operation_type: Install
   other_non_compliant_count: 0
   owner_information:
   patch_group: test-grp6-wed
   patches: [
     [
       KB5001879
       Yes
       Success
     ]
     [
       KB890830
       Yes
       Success
     ]
   ]
}

 

 

 
What I'm after is table selected fields like server name, start/finish times etc. and to get the patches column in the format (space or comma seperated on 2 lines with the same row as the rest of the row for that server)
KB5001879, Yes, Success
KB890830, Yes, Success

I can extract the field using the following:
index="aws" sourcetype="aws:ssmpatchinglogs"
| spath patches{}{} output=patches

I've tried some things with mvexpand, streamstats and mvindex (which didn't recognise the command - we're on splunk Version:8.0.1 Build:6db836e2fb9e).

Cheers

Labels (1)
0 Karma
Get Updates on the Splunk Community!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...