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
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!

Introducing ITSI 5.0: Unified Visibility and Actionable Insights

Introducing ITSI 5.0: Unified Visibility and Actionable Insights Tuesday, July 21, 2026  |  10:00AM PT / ...

Inside Splunk Agent Observability: Understanding Agent Behavior, Tokens & Costs

Inside Splunk Agent Observability:Understanding Agent Behavior, Tokens & Costs Thursday, August 06, ...

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...