<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to separate fields into events based on value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203015#M58974</link>
    <description>&lt;P&gt;Providing you current query will help. Meanwhile try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search | eval temp=mvzip(mvzip(Bundle,MM,"#"),Installs,"#") | table temp | mvexpand temp | rex field=temp "(?&amp;lt;Bundle&amp;gt;.*)#(?&amp;lt;MM&amp;gt;.*)#(?&amp;lt;Installs&amp;gt;.*)" | fields - temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Oct 2015 20:52:27 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-10-21T20:52:27Z</dc:date>
    <item>
      <title>How to separate fields into events based on value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203014#M58973</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;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? &lt;BR /&gt;
Thank you.  ( P.S the fields would be named Bundle, MM ,and Installs , respectively)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Bundle               MM         Installs
36.46.56.76          32            3
37.47.57.77          33            4
38.48.58.78          40            7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Desired Results-  ( where each ----------------- means a new event)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Bundle            MM            Installs
----------------------------------------------
36.46.56.76       32                3
----------------------------------------------
37.47.57.77       33                4
----------------------------------------------
38.48.58.78       40                7
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 20:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203014#M58973</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-10-21T20:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields into events based on value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203015#M58974</link>
      <description>&lt;P&gt;Providing you current query will help. Meanwhile try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search | eval temp=mvzip(mvzip(Bundle,MM,"#"),Installs,"#") | table temp | mvexpand temp | rex field=temp "(?&amp;lt;Bundle&amp;gt;.*)#(?&amp;lt;MM&amp;gt;.*)#(?&amp;lt;Installs&amp;gt;.*)" | fields - temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 20:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203015#M58974</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-21T20:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to separate fields into events based on value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203016#M58975</link>
      <description>&lt;P&gt;It worked! Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 21:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-separate-fields-into-events-based-on-value/m-p/203016#M58975</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-10-21T21:16:23Z</dc:date>
    </item>
  </channel>
</rss>

