Splunk Dev

extract a multiline field value into multiple events

yashaswinig2210
Engager

Hi,

I have a query which gives GroupName and its members in the below format

 

GroupName                    member
Domain Admins  CN=firstname1\, lastname1 P0,OU=P0-Accounts,OU=test OU
                                   CN=firstname2\, lastname2 P1,OU=P1-Accounts,OU=test OU
                                   CN=firstname3\, lastname3 P3,OU=P3-Accounts,OU=test OU

And im trying to extract it in multiple events like below seperately for each and every member

GroupName                    member
Domain Admins            CN=firstname1\, lastname1 P0,OU=P0-Accounts,OU=test OU
 Domain Admins           CN=firstname2\, lastname2 P1,OU=P1-Accounts,OU=test OU
 Domain Admins           CN=firstname3\, lastname3 P3,OU=P3-Accounts,OU=test OU

 

 

 

Labels (2)
0 Karma
1 Solution

renjith_nair
Legend

Does mvexpand work for you?

"your search"
|mvexpand member

 

---
What goes around comes around. If it helps, hit it with Karma 🙂

View solution in original post

0 Karma

renjith_nair
Legend

Does mvexpand work for you?

"your search"
|mvexpand member

 

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

yashaswinig2210
Engager

@renjith_nair  No mvexpand didnt work

0 Karma

renjith_nair
Legend

Ok , so why didn't work, is it not a multi value field? or can you share the search which results in the existing state?

---
What goes around comes around. If it helps, hit it with Karma 🙂
0 Karma

yashaswinig2210
Engager

Hey thanks now I realised my mistake i have used mvexpand on my lookup so it didnt work and now I tried mvexpand on actual index and sourcetype its working fine

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...