<?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: Split MV into new table rows in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266367#M51050</link>
    <description>&lt;P&gt;To see every field value in separate row&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search here | eval temp=split(FieldA,"^") | table temp | mvexpand temp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get the count&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search here | eval temp=split(FieldA,"^") | table temp | stats count as hits by temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 31 Jan 2017 21:53:40 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-01-31T21:53:40Z</dc:date>
    <item>
      <title>Split MV into new table rows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266366#M51049</link>
      <description>&lt;P&gt;I have rows where data looks like..&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Value1^Value2^Value3&lt;/LI&gt;
&lt;LI&gt;Value4^Value5&lt;/LI&gt;
&lt;LI&gt;Value6&lt;/LI&gt;
&lt;LI&gt;Value7^Value8&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;My query (below)...&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
search here&lt;BR /&gt;
| eval temp=split(FieldA,"^")&lt;BR /&gt;
| table temp&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Makes the following..&lt;BR /&gt;
1.Value1&lt;BR /&gt;
Value2&lt;BR /&gt;
Value3&lt;BR /&gt;
2.Value4&lt;BR /&gt;
Value5&lt;BR /&gt;
3.....&lt;/P&gt;

&lt;P&gt;I need each value to be on a separate row. Additionally, I need the count of each time the row is returned in the event. Currently when I add "| stats count by FieldA as hits" no data is returned.&lt;/P&gt;

&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 21:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266366#M51049</guid>
      <dc:creator>ereed18</dc:creator>
      <dc:date>2017-01-31T21:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split MV into new table rows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266367#M51050</link>
      <description>&lt;P&gt;To see every field value in separate row&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search here | eval temp=split(FieldA,"^") | table temp | mvexpand temp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To get the count&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search here | eval temp=split(FieldA,"^") | table temp | stats count as hits by temp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2017 21:53:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266367#M51050</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-31T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Split MV into new table rows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266368#M51051</link>
      <description>&lt;P&gt;I had to move "mvexpand" in front of "table", but that works. Additionally, count had to go to the end when I was trying to count, table the field and count then expand the rows. I think my order might have caused my issues. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 15:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Split-MV-into-new-table-rows/m-p/266368#M51051</guid>
      <dc:creator>ereed18</dc:creator>
      <dc:date>2017-02-01T15:57:27Z</dc:date>
    </item>
  </channel>
</rss>

