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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...