Splunk Search

How do I split an event with extracted fields into rows?

shaheelkhan59
New Member

Hello all,

I've used the following SPL to extract some fields from my logs.
alt text

I got the following result.
alt text

My issue is that each row in pic2 is not in separate rows. They are a part of an event. I want each row in Pic2 as separate rows. How this can be done?

i've tried mvexpand, but I didn't get the required format.

Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

The mvexpand command is the answer, but it's a little tricky because you have several multi-value fields. See Example 3 in the mvexpand docs at http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Mvexpand#Examples.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

shaheelkhan59
New Member

I did this. It also worked perfectly
alt text

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The mvexpand command is the answer, but it's a little tricky because you have several multi-value fields. See Example 3 in the mvexpand docs at http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Mvexpand#Examples.

---
If this reply helps you, Karma would be appreciated.
0 Karma

shaheelkhan59
New Member

Thanks richgalloway it worked perfect. Thanks again for quick response. Following pics shows what I changedalt textalt text

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...