<?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 brake out individual row by host repeated for each line in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/536872#M151771</link>
    <description>&lt;P&gt;Here is what I've done.&amp;nbsp; How to break out the results into individual software correctly in Splunk.&amp;nbsp; Any tips could be helpful.&amp;nbsp; Here is the regex being used for software_name and software_version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=100 field=pluginText "\n+(?&amp;lt;software_name&amp;gt;[^[].*)\s\s\[version\s\d"
| rex max_match=100 field=pluginText "\s\s\[version\s(?&amp;lt;software_version&amp;gt;[^[]*.)\]"
| stats values(software_name) as software_name values(software_version) as software_version by dest&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the text being rex to field value.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;plugin_output&amp;gt;
The following software are installed on the remote host :

McAfee Agent  [version 5.6.6.232]
Mozilla Firefox 84.0.2 (x64 en-US)  [version 84.0.2]
Mozilla Maintenance Service  [version 84.0.2]
The following updates are installed :

Microsoft Visual C++ 2010  x64 Redistributable - 10.0.40219 :
  KB2151757  [version 1]  [installed on 3/23/2020]
  KB2467173  [version 1]  [installed on 3/23/2020]
  KB2565063  [version 1]  [installed on 9/10/2020]
  KB982573  [version 1]  [installed on 3/23/2020]
Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 :
  KB2151757  [version 1]  [installed on 3/23/2020]
  KB2467173  [version 1]  [installed on 3/23/2020]
  KB2565063  [version 1]  [installed on 3/23/2020]
  KB982573  [version 1]  [installed on 3/23/2020]
&amp;lt;/plugin_output&amp;gt;&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I want to break out the results to induvial line with the host repeated.&amp;nbsp; But, I don't know where to start.&amp;nbsp; I'd try mvexpan function but, it doesn't break out the correct pair of data.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 18:00:11 GMT</pubDate>
    <dc:creator>youngsuh</dc:creator>
    <dc:date>2021-01-22T18:00:11Z</dc:date>
    <item>
      <title>brake out individual row by host repeated for each line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/536872#M151771</link>
      <description>&lt;P&gt;Here is what I've done.&amp;nbsp; How to break out the results into individual software correctly in Splunk.&amp;nbsp; Any tips could be helpful.&amp;nbsp; Here is the regex being used for software_name and software_version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=100 field=pluginText "\n+(?&amp;lt;software_name&amp;gt;[^[].*)\s\s\[version\s\d"
| rex max_match=100 field=pluginText "\s\s\[version\s(?&amp;lt;software_version&amp;gt;[^[]*.)\]"
| stats values(software_name) as software_name values(software_version) as software_version by dest&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the text being rex to field value.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;plugin_output&amp;gt;
The following software are installed on the remote host :

McAfee Agent  [version 5.6.6.232]
Mozilla Firefox 84.0.2 (x64 en-US)  [version 84.0.2]
Mozilla Maintenance Service  [version 84.0.2]
The following updates are installed :

Microsoft Visual C++ 2010  x64 Redistributable - 10.0.40219 :
  KB2151757  [version 1]  [installed on 3/23/2020]
  KB2467173  [version 1]  [installed on 3/23/2020]
  KB2565063  [version 1]  [installed on 9/10/2020]
  KB982573  [version 1]  [installed on 3/23/2020]
Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 :
  KB2151757  [version 1]  [installed on 3/23/2020]
  KB2467173  [version 1]  [installed on 3/23/2020]
  KB2565063  [version 1]  [installed on 3/23/2020]
  KB982573  [version 1]  [installed on 3/23/2020]
&amp;lt;/plugin_output&amp;gt;&lt;/LI-CODE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I want to break out the results to induvial line with the host repeated.&amp;nbsp; But, I don't know where to start.&amp;nbsp; I'd try mvexpan function but, it doesn't break out the correct pair of data.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 18:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/536872#M151771</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2021-01-22T18:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: brake out individual row by host repeated for each line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/536944#M151786</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="&amp;lt;plugin_output&amp;gt;
The following software are installed on the remote host :

McAfee Agent  [version 5.6.6.232]
Mozilla Firefox 84.0.2 (x64 en-US)  [version 84.0.2]
Mozilla Maintenance Service  [version 84.0.2]
The following updates are installed :

Microsoft Visual C++ 2010  x64 Redistributable - 10.0.40219 :
  KB2151757  [version 1]  [installed on 3/23/2020]
  KB2467173  [version 1]  [installed on 3/23/2020]
  KB2565063  [version 1]  [installed on 9/10/2020]
  KB982573  [version 1]  [installed on 3/23/2020]
Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 :
  KB2151757  [version 1]  [installed on 3/23/2020]
  KB2467173  [version 1]  [installed on 3/23/2020]
  KB2565063  [version 1]  [installed on 3/23/2020]
  KB982573  [version 1]  [installed on 3/23/2020]
&amp;lt;/plugin_output&amp;gt;" 
| multikv noheader=t 
| where !match(_raw,"^\&amp;lt;.*") 
| streamstats count(eval(match(_raw,"The following"))) as session 
| rex "(?&amp;lt;software&amp;gt;.* )\[version (?&amp;lt;version&amp;gt;[^\]]+)" 
| where !match(_raw,"The following") 
| rex "(?&amp;lt;master&amp;gt;.*) :" 
| filldown master 
| fillnull master value="-" 
| stats values(master) as master by software version&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 24 Jan 2021 05:00:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/536944#M151786</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-24T05:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: brake out individual row by host repeated for each line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/537473#M151947</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In reviewing your SPL.&amp;nbsp; Look like I didn't provided enough information.&amp;nbsp; I'd get the plugintext has field from a SPL search like so.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="tenable" sourcetype="tenable:sc:vuln" plugin_id=42760 
| rex max_match=100 field=pluginText "\n+(?&amp;lt;software_name&amp;gt;[^[].*)\s\s\[version\s\d"
| rex max_match=100 field=pluginText "\s\s\[version\s(?&amp;lt;software_version&amp;gt;[^[]*.)\]"
| stats values(software_name) as software_name values(software_version) as software_version by dest&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I'd gave your SPL try to pipe the results&amp;nbsp; with no luck.&amp;nbsp; My SPL still is still elementary.&amp;nbsp; Additional help would appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 16:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/537473#M151947</guid>
      <dc:creator>youngsuh</dc:creator>
      <dc:date>2021-01-28T16:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: brake out individual row by host repeated for each line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/537719#M152028</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="tenable" sourcetype="tenable:sc:vuln" plugin_id=42760 
| multikv noheader=t 
| where !match(_raw,"^\&amp;lt;.*") 
| streamstats count(eval(match(_raw,"The following"))) as session 
| rex "(?&amp;lt;software&amp;gt;.* )\[version (?&amp;lt;version&amp;gt;[^\]]+)" 
| where !match(_raw,"The following") 
| rex "(?&amp;lt;master&amp;gt;.*) :" 
| filldown master 
| fillnull master value="-" 
| stats values(master) as master by software version&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 20:38:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/brake-out-individual-row-by-host-repeated-for-each-line/m-p/537719#M152028</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-01-28T20:38:51Z</dc:date>
    </item>
  </channel>
</rss>

