Splunk Search

How to separate fields into events based on value

raby1996
Path Finder

Hi all

I've been trying to separate the values of a stats table that looks similar to what i have below. I've used different variations of the mvexpand command, however, the problem I face when I try this is that each one of my "Bundle" fields has multiple bundles of the same value combined into the same value (which I count and do calculations to in the background), I.E three 36.56.66.76 are displayed as one field instead of three, but when I try separating them (for export as a csv) it gives me every individual value instead of keeping everything the way it is, and just making new fields with it. Is there any way I can do this?
Thank you. ( P.S the fields would be named Bundle, MM ,and Installs , respectively)

Bundle               MM         Installs
36.46.56.76          32            3
37.47.57.77          33            4
38.48.58.78          40            7

Desired Results- ( where each ----------------- means a new event)

Bundle            MM            Installs
----------------------------------------------
36.46.56.76       32                3
----------------------------------------------
37.47.57.77       33                4
----------------------------------------------
38.48.58.78       40                7
0 Karma
1 Solution

somesoni2
Revered Legend

Providing you current query will help. Meanwhile try this

your current search | eval temp=mvzip(mvzip(Bundle,MM,"#"),Installs,"#") | table temp | mvexpand temp | rex field=temp "(?<Bundle>.*)#(?<MM>.*)#(?<Installs>.*)" | fields - temp

View solution in original post

0 Karma

somesoni2
Revered Legend

Providing you current query will help. Meanwhile try this

your current search | eval temp=mvzip(mvzip(Bundle,MM,"#"),Installs,"#") | table temp | mvexpand temp | rex field=temp "(?<Bundle>.*)#(?<MM>.*)#(?<Installs>.*)" | fields - temp
0 Karma

raby1996
Path Finder

It worked! Thank you.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...