<?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: Help with tracking vulnerability data over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33920#M7249</link>
    <description>&lt;P&gt;One reason that it does not work (correctly) is that you cannot escape asterisks in SPL so this part is bad:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT dest=\*/*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You have to do something like this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex dest!="\*/.*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jul 2015 13:31:59 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-07-10T13:31:59Z</dc:date>
    <item>
      <title>Help with tracking vulnerability data over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33915#M7244</link>
      <description>&lt;P&gt;I'm trying to figure out the smartest way to track vulnerability data over time and account for how DHCP may mean that a single host is scanned at multiple IPs.&lt;/P&gt;

&lt;P&gt;So, I've tried a search that looks for all vulnerability data and then it does an inner join by &lt;CODE&gt;dest&lt;/CODE&gt; and &lt;CODE&gt;_time&lt;/CODE&gt; on a subsearch that looks for a particular event ID that contains the hostname.  I'm guessing I can them do a &lt;CODE&gt;| streamstats max(_time) AS last_scan by dest | where _time=last_scan&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;But for whatever reason, this search doesn't come back with any results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=vulnerabilities sourcetype=nessus NOT "Plugin ID,CVE," NOT dest=\*/* | join type=inner _time,dest [search index=vulnerabilities nessus_id="11936" OR nessus_id="12053" OR nessus_id="60035" NOT dest=\*/* | rex field=plugin_output "(?i)resolves\sas\s(?P&amp;lt;hostname&amp;gt;[^\.]+)\.(?P&amp;lt;domainname&amp;gt;\S+)?\." | eval hostname=if(isnull(hostname),dest,hostname) | fields hostname] | table _time,dest,hostname,signature_name 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What am I doing wrong here?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 00:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33915#M7244</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2013-05-15T00:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with tracking vulnerability data over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33916#M7245</link>
      <description>&lt;P&gt;Are parentheses required for your sub search to work?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search index=vulnerabilities (nessus_id="11936" OR nessus_id="12053" OR nessus_id="60035") NOT dest=\*/*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tim.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 12:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33916#M7245</guid>
      <dc:creator>TimMc</dc:creator>
      <dc:date>2013-05-15T12:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with tracking vulnerability data over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33917#M7246</link>
      <description>&lt;P&gt;The parentheses didn't change anything...&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 18:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33917#M7246</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2013-05-15T18:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with tracking vulnerability data over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33918#M7247</link>
      <description>&lt;P&gt;Not really sure about the index. Try breaking down the entire query and make sure that each part is working as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 23:32:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33918#M7247</guid>
      <dc:creator>TimMc</dc:creator>
      <dc:date>2013-05-15T23:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with tracking vulnerability data over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33919#M7248</link>
      <description>&lt;P&gt;Try this. Any results?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=vulnerabilities sourcetype=nessus | join type=inner _time,dest [search index=vulnerabilities | rex field=plugin_output "(?i)resolves\sas\s(?P&amp;lt;hostname&amp;gt;[^\.]+)\.(?P&amp;lt;domainname&amp;gt;\S+)?\." | eval hostname=if(isnull(hostname),dest,hostname) | fields hostname]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 03:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33919#M7248</guid>
      <dc:creator>dolivasoh</dc:creator>
      <dc:date>2015-07-10T03:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with tracking vulnerability data over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33920#M7249</link>
      <description>&lt;P&gt;One reason that it does not work (correctly) is that you cannot escape asterisks in SPL so this part is bad:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT dest=\*/*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You have to do something like this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex dest!="\*/.*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2015 13:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-tracking-vulnerability-data-over-time/m-p/33920#M7249</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-10T13:31:59Z</dc:date>
    </item>
  </channel>
</rss>

