<?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 alert based off the last reported number in a stats count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207704#M60540</link>
    <description>&lt;P&gt;How to alert based off the last reported number in a time chart. I want to alert based on a comparison of the last two numbers where if it that value grew more than x%, I want it to alert. &lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2016 13:28:50 GMT</pubDate>
    <dc:creator>sbattista09</dc:creator>
    <dc:date>2016-08-01T13:28:50Z</dc:date>
    <item>
      <title>How to alert based off the last reported number in a stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207704#M60540</link>
      <description>&lt;P&gt;How to alert based off the last reported number in a time chart. I want to alert based on a comparison of the last two numbers where if it that value grew more than x%, I want it to alert. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207704#M60540</guid>
      <dc:creator>sbattista09</dc:creator>
      <dc:date>2016-08-01T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert based off the last reported number in a stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207705#M60541</link>
      <description>&lt;P&gt;Could you provide more information on your current outputs and expected output? (The title says stats and the question says timechart ) Also share you current queries.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207705#M60541</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-01T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert based off the last reported number in a stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207706#M60542</link>
      <description>&lt;P&gt;add this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | tail 2 | reverse | autoregress count | eval pct_increase=100 * (count - count_p1)/count | where pct_increase &amp;gt; X
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207706#M60542</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-08-01T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to alert based off the last reported number in a stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207707#M60543</link>
      <description>&lt;P&gt;so this is great however the pct_increase (i renamed it to pct_diff) is not putting a decimal so for instance&lt;BR /&gt;
count    count_p1     pct_diff &lt;BR /&gt;
18.32     10.25            807&lt;BR /&gt;
pct_diff should be 8.07&lt;/P&gt;

&lt;P&gt;i fixed it by adding a decimal &lt;BR /&gt;
| eval pct_increase=1.00 * (count - count_p1)/count | where pct_increase &amp;gt; X&lt;/P&gt;

&lt;P&gt;thanks again i will be suing this a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-alert-based-off-the-last-reported-number-in-a-stats-count/m-p/207707#M60543</guid>
      <dc:creator>sbattista09</dc:creator>
      <dc:date>2020-09-29T10:35:49Z</dc:date>
    </item>
  </channel>
</rss>

