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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...