Splunk Search

Explode line into multiple lines

Yossarian622
Engager

Howto to explode 1 row to several breaking out a multi-value field.

app=ABC client=AA views=View1,View2
app=ABC client=AA views=View1,View2,View3
app=ABC client=BB views=View1,View3
app=ABC client=CC views=View3,View2,View1

I want to table that to column data:

app client view
ABC AA View1
ABC AA View2
ABC AA View1
ABC AA View2
ABC AA View3
ABC BB View1
ABC BB View3
ABC CC View3
ABC CC View2
ABC CC View1

So that I can run count on that resultant rows

app client view count
ABC AA View1 2
ABC AA View2 2
ABC AA View3 1
ABC BB View1 1
ABC BB View3 1
ABC CC View3 1
ABC CC View2 1
ABC CC View1 1

Labels (1)
0 Karma
1 Solution

Yossarian622
Engager

Yes!

a combination of makemv delim="," views

and mvexpand views

got me what I was looking for. thanks!

0 Karma
Get Updates on the Splunk Community!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

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 ...