<?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 compare previous data and alert if result over 5 percencet in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370006#M108976</link>
    <description>&lt;P&gt;We have monthly data for each SBU and we want to setup an alert if any total increase more than 5% for up coming month.&lt;/P&gt;

&lt;P&gt;index=mydata | bin span=1mon _time | stats sum(total) as Total_Val by _time, SBU | sort +SBU -_time&lt;/P&gt;

&lt;P&gt;Can you please help us to write a Splunk query to filter if any total increase more than 5% comparing with previous month.&lt;/P&gt;

&lt;P&gt;Note: We have more than 50 SBU.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:03:23 GMT</pubDate>
    <dc:creator>dhavamanis</dc:creator>
    <dc:date>2020-09-29T16:03:23Z</dc:date>
    <item>
      <title>How to compare previous data and alert if result over 5 percencet</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370006#M108976</link>
      <description>&lt;P&gt;We have monthly data for each SBU and we want to setup an alert if any total increase more than 5% for up coming month.&lt;/P&gt;

&lt;P&gt;index=mydata | bin span=1mon _time | stats sum(total) as Total_Val by _time, SBU | sort +SBU -_time&lt;/P&gt;

&lt;P&gt;Can you please help us to write a Splunk query to filter if any total increase more than 5% comparing with previous month.&lt;/P&gt;

&lt;P&gt;Note: We have more than 50 SBU.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370006#M108976</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2020-09-29T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare previous data and alert if result over 5 percencet</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370007#M108977</link>
      <description>&lt;P&gt;Any reason why streamstats , prev value is not woking?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 17:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370007#M108977</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-29T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare previous data and alert if result over 5 percencet</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370008#M108978</link>
      <description>&lt;P&gt;That would be the way to go for this use case.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 17:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370008#M108978</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-29T17:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare previous data and alert if result over 5 percencet</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370009#M108979</link>
      <description>&lt;P&gt;Thanks. Initially tried with delta. but streamstats works for this case.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 17:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370009#M108979</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2017-09-29T17:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare previous data and alert if result over 5 percencet</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370010#M108980</link>
      <description>&lt;P&gt;Streamstats works fine,&lt;/P&gt;

&lt;P&gt;....| stats sum(total) as total by  _time, SBU | sort +SBU -_time|table _time, SBU, total | streamstats current=f window=1 first(total) as prev by SBU |eval  deltaval=total - prev | eval diffp=deltaval/total*100 | where diffp&amp;gt;5&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-previous-data-and-alert-if-result-over-5/m-p/370010#M108980</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2020-09-29T16:03:29Z</dc:date>
    </item>
  </channel>
</rss>

