<?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 compare most recent results with previous search results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162816#M46214</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2014 03:31:36 GMT</pubDate>
    <dc:creator>vinchakov_a</dc:creator>
    <dc:date>2014-08-01T03:31:36Z</dc:date>
    <item>
      <title>How to compare most recent results with previous search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162814#M46212</link>
      <description>&lt;P&gt;Open ports are check every 5 minutes. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=openPorts host=myhost earliest = -5m@m

udp      123
udp     1514
udp     1506
udp     1505
udp     1504
udp     1503
udp     1502
udp     1501
udp      514
udp      123
udp      123
udp      123
udp      631
tcp     8000
tcp     8089
tcp       22
tcp     9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it possible to compare the most recent values with the previous results?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 08:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162814#M46212</guid>
      <dc:creator>vinchakov_a</dc:creator>
      <dc:date>2014-07-30T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare most recent results with previous search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162815#M46213</link>
      <description>&lt;P&gt;Something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|set diff [search index=os sourcetype=openPorts host=myhost earliest = -5m@m][index=os sourcetype=openPorts host=myhost earliest = -10m@m latest=-5m@m]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add "|table &amp;lt;&lt;FIELDS you="" want="" to="" compare=""&gt;&amp;gt;" to both the subsearches to better results.&lt;BR /&gt;
There could be more better approach to this but you need to provide more details on the data, comparison you want to do to arrive on one.&lt;/FIELDS&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 14:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162815#M46213</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-31T14:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare most recent results with previous search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162816#M46214</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 03:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162816#M46214</guid>
      <dc:creator>vinchakov_a</dc:creator>
      <dc:date>2014-08-01T03:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare most recent results with previous search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162817#M46215</link>
      <description>&lt;P&gt;It's work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| set diff [ | search index=os sourcetype=openPorts host=host1 earliest = -5m@m | dedup Port | table Port][ | search index=os sourcetype=openPorts host=host2 earliest = -10m@m latest=-6m@m | dedup Port | table Port]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I recieve: No results found.&lt;/P&gt;

&lt;P&gt;The following step a cycle of all hosts. It is real? I don't want to write alert on each host separately.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 03:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-most-recent-results-with-previous-search-results/m-p/162817#M46215</guid>
      <dc:creator>vinchakov_a</dc:creator>
      <dc:date>2014-08-01T03:39:56Z</dc:date>
    </item>
  </channel>
</rss>

