<?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 How to split multiple lines in a table into separate rows? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406311#M72101</link>
    <description>&lt;P&gt;I have some data from Tenable and I am trying to weed out the rows with multiple values into its own row.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5274iC036DFF4EB7C4EC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;A good example would be is the 4th row with 3 CVE-IDs (CVE-2003-1567, CVE-2004-2320, and CVE-2010-0386).&lt;/P&gt;

&lt;P&gt;Instead, I would like to break it out to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CVE-2003-1567 Disable these methods. Refer to the plugin output for more information.
CVE-2004-2320 Disable these methods. Refer to the plugin output for more information.
CVE-2010-0386 Disable these methods. Refer to the plugin output for more information.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 02:32:23 GMT</pubDate>
    <dc:creator>jimmynguy</dc:creator>
    <dc:date>2018-06-28T02:32:23Z</dc:date>
    <item>
      <title>How to split multiple lines in a table into separate rows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406311#M72101</link>
      <description>&lt;P&gt;I have some data from Tenable and I am trying to weed out the rows with multiple values into its own row.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5274iC036DFF4EB7C4EC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;A good example would be is the 4th row with 3 CVE-IDs (CVE-2003-1567, CVE-2004-2320, and CVE-2010-0386).&lt;/P&gt;

&lt;P&gt;Instead, I would like to break it out to look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CVE-2003-1567 Disable these methods. Refer to the plugin output for more information.
CVE-2004-2320 Disable these methods. Refer to the plugin output for more information.
CVE-2010-0386 Disable these methods. Refer to the plugin output for more information.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 02:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406311#M72101</guid>
      <dc:creator>jimmynguy</dc:creator>
      <dc:date>2018-06-28T02:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines in a table into separate rows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406312#M72102</link>
      <description>&lt;P&gt;Sounds like a case for the &lt;CODE&gt;mvexpand&lt;/CODE&gt; command: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Mvexpand"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Mvexpand&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...your base search that results in this data...
| mvexpand "CVE ID"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jun 2018 07:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406312#M72102</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-28T07:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines in a table into separate rows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406313#M72103</link>
      <description>&lt;P&gt;Frank,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=tenable_data severity!="informational" hasBeenMitigated=0 
| fields cve, solution
| dedup cve
| mvexpand cve
| rename cve as "CVE ID", solution as "Solution"
| table "CVE ID","Solution"
| sort "CVE ID"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It would have been more useful if I sent you guys my SPL, sorry for not doing that! But, | mvexpand "CVE-ID" would not work, I had to use | mvexpand cve. Could you explain why that is the case? Does | mvexpand not work if a field has been renamed?&lt;/P&gt;

&lt;P&gt;Thanks for introducing me to the mvexpand command!!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406313#M72103</guid>
      <dc:creator>jimmynguy</dc:creator>
      <dc:date>2018-06-28T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines in a table into separate rows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406314#M72104</link>
      <description>&lt;P&gt;If you put the mvexpand command &lt;STRONG&gt;before&lt;/STRONG&gt; the rename command, then of course you need to use the original name of the field &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406314#M72104</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-28T12:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines in a table into separate rows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406315#M72105</link>
      <description>&lt;P&gt;I swear it didn't work &lt;STRONG&gt;after&lt;/STRONG&gt; the rename command.. must have overlooked it or my brain was still asleep.. Anyways, thank you so much for the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 13:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-in-a-table-into-separate-rows/m-p/406315#M72105</guid>
      <dc:creator>jimmynguy</dc:creator>
      <dc:date>2018-06-28T13:57:50Z</dc:date>
    </item>
  </channel>
</rss>

