<?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: Alert when error_count is continuously increasing  over _time for any group mentioned in column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630094#M218898</link>
    <description>&lt;P&gt;May i know what should be used in &amp;lt;&amp;lt;field&amp;gt;&amp;gt;&amp;nbsp; because here im working with group and error_count field only, please refer image for more clarity&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;&amp;lt;BASE QUERY&amp;gt;&amp;gt; | timechart span=30m sum(error_c) as error_count by group&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| streamstats window=1 current=f values(*) as prev_*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;| foreach group* [|eval increase_group=if(group &amp;gt; prev_group , 1, null())]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Its just giving each group name and prev_groupname columns&lt;BR /&gt;I tried by changing null() by 0 also&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 19:50:47 GMT</pubDate>
    <dc:creator>StringBee</dc:creator>
    <dc:date>2023-02-08T19:50:47Z</dc:date>
    <item>
      <title>How to create alert when error_count is continuously increasing  over _time for any group mentioned in column?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630066#M218879</link>
      <description>&lt;P&gt;I want to create a alert that will notify if error_count is continuously increasing over time for any of the group mentioned in column&lt;BR /&gt;In table I have used timechart which gives sum of error_count value for different groups over the time. I need to compare. I want query that will trigger alert when every row value is greater then its previous row for their respective column, If any column verify this condition Alert should be raised&lt;BR /&gt;&lt;STRONG&gt;In Simple words : Alert when error_count increases with time for any group&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;My sample query:&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;BASE QUERY&amp;gt;&amp;gt;&amp;nbsp;earliest=-4h@h latest=@h | timechart span=30m sum(error_count) as c by group&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-08 at 3.07.51 PM.png" style="width: 200px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23773iABBA2A0962D7E3E8/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2023-02-08 at 3.07.51 PM.png" alt="Screenshot 2023-02-08 at 3.07.51 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Result of this query is in image attached ,consider this table as sample data for Alert query&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 17:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630066#M218879</guid>
      <dc:creator>StringBee</dc:creator>
      <dc:date>2023-02-08T17:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when error_count is continuously increasing  over _time for any group mentioned in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630071#M218883</link>
      <description>&lt;P&gt;It depends on what you mean by "continuously increasing". This might give you a starting point&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats window=1 current=f values(*) as previous_*
| foreach group*
    [| eval increase_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; &amp;gt; previous_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;, 1, null())]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 10:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630071#M218883</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-08T10:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when error_count is continuously increasing  over _time for any group mentioned in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630076#M218887</link>
      <description>&lt;P&gt;&lt;SPAN&gt;by "continuously increasing" i mean error_count value should increase consecutively 4 times for respective column&lt;BR /&gt;Note : Basically alert should be triggered when we get increasing value in consecutive 4 rows of column&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630076#M218887</guid>
      <dc:creator>StringBee</dc:creator>
      <dc:date>2023-02-08T11:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when error_count is continuously increasing  over _time for any group mentioned in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630088#M218893</link>
      <description>&lt;LI-CODE lang="markup"&gt;| streamstats window=1 current=f values(*) as previous_*
| foreach group*
    [| eval increase_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; &amp;gt; previous_&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;, 1, null())]
| streamstats window=4 sum(increase_*) as last4increase_*
| eval alert=0
| foreach last4increase_*
    [| eval alert=if(alert == 0 and &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; == 4, 1, alert)]
| where alert == 1&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630088#M218893</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-08T12:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when error_count is continuously increasing  over _time for any group mentioned in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630094#M218898</link>
      <description>&lt;P&gt;May i know what should be used in &amp;lt;&amp;lt;field&amp;gt;&amp;gt;&amp;nbsp; because here im working with group and error_count field only, please refer image for more clarity&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;&amp;lt;BASE QUERY&amp;gt;&amp;gt; | timechart span=30m sum(error_c) as error_count by group&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| streamstats window=1 current=f values(*) as prev_*&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;| foreach group* [|eval increase_group=if(group &amp;gt; prev_group , 1, null())]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Its just giving each group name and prev_groupname columns&lt;BR /&gt;I tried by changing null() by 0 also&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 19:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630094#M218898</guid>
      <dc:creator>StringBee</dc:creator>
      <dc:date>2023-02-08T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when error_count is continuously increasing  over _time for any group mentioned in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630099#M218901</link>
      <description>&lt;P&gt;The foreach command substitutes various special names (including &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;) with the fields listed into the subsearch.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Foreach" target="_blank"&gt;foreach - Splunk Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630099#M218901</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-08T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when error_count is continuously increasing  over _time for any group mentioned in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630408#M219015</link>
      <description>&lt;P&gt;You are awesome !&lt;BR /&gt;Thanks for help&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 08:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-alert-when-error-count-is-continuously-increasing/m-p/630408#M219015</guid>
      <dc:creator>StringBee</dc:creator>
      <dc:date>2023-02-10T08:20:41Z</dc:date>
    </item>
  </channel>
</rss>

