<?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 create a single scheduled search that will trigger an alert only if the current search result differs from the previous result? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192974#M55505</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can use lookups for storing the intermidiate status. Compare the intermidiate result (from lookup) against the current search results. Accordingly, alearts can be triggered.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2015 11:39:30 GMT</pubDate>
    <dc:creator>vganjare</dc:creator>
    <dc:date>2015-03-25T11:39:30Z</dc:date>
    <item>
      <title>How to create a single scheduled search that will trigger an alert only if the current search result differs from the previous result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192973#M55504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a periodic search looking for a specific pattern in the logs and assign status to the result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|eval status=if(count=0,"not found","found")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to raise an alert only in the case that the latest search's status value differs from the status returned by the previous one?&lt;BR /&gt;
I mean, without having two alerts set with different triggers, but based on the same search (which will need to be run twice in this case).&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 07:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192973#M55504</guid>
      <dc:creator>bluei</dc:creator>
      <dc:date>2015-03-24T07:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a single scheduled search that will trigger an alert only if the current search result differs from the previous result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192974#M55505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can use lookups for storing the intermidiate status. Compare the intermidiate result (from lookup) against the current search results. Accordingly, alearts can be triggered.&lt;/P&gt;

&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 11:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192974#M55505</guid>
      <dc:creator>vganjare</dc:creator>
      <dc:date>2015-03-25T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a single scheduled search that will trigger an alert only if the current search result differs from the previous result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192975#M55506</link>
      <description>&lt;P&gt;Thank you vganjare,&lt;/P&gt;

&lt;P&gt;You gave me the direction which actually led me to an idea to enable summary indexing on this search.&lt;BR /&gt;
This way I can compare current result with the latest indexed (i.e. previous).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2015 13:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-single-scheduled-search-that-will-trigger-an/m-p/192975#M55506</guid>
      <dc:creator>bluei</dc:creator>
      <dc:date>2015-03-26T13:52:53Z</dc:date>
    </item>
  </channel>
</rss>

