<?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: Consolidated Alerting using TOP command in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/374001#M6632</link>
    <description>&lt;P&gt;thank you micahkemp, it worked like charm.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 20:34:14 GMT</pubDate>
    <dc:creator>newbie2tech</dc:creator>
    <dc:date>2018-02-13T20:34:14Z</dc:date>
    <item>
      <title>Consolidated Alerting using TOP command</title>
      <link>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/373999#M6630</link>
      <description>&lt;P&gt;&lt;CODE&gt;enter code here&lt;/CODE&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;We have an application platform which is gateway for multiple applications[1000+ apps], we have ingested platform logs in splunk.&lt;/P&gt;

&lt;P&gt;Platform team wants to setup alerts for each of the applications if the number of HTTP 500 requests breaches the threshold say 5% of the total requests for that app. Alert schedule is every 5 mins. Alert should be sent to corresponding app team as there are more than 1000+ apps, platform team cannot handle.&lt;/P&gt;

&lt;P&gt;I am using the top command with limit=0 , this is giving the total events across all the applications in last 5 mins but i want to be able treat the count of specific application as 100 and then calculate the 500 requests % and check if the threshold is violated.&lt;/P&gt;

&lt;P&gt;my current query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | top HttpStatus app limit=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is how my current query data looks like , App1+App2 adds up to 100%&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HttpStatus  app        count    percent
400         App1        30      0.091609
200         App1        15      0.045804
500         App1        6       0.018322
200         App2        3813    11.643459
400         App2        2       0.006107
500         App2        28882   88.194699
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is how i want the output to be able to  trigger at app level. app1 breakup sums up to 100%,likewise App2 breakup sums up to 100%. Then i can link it to lookup and check if the 500 requests have exceeded the threshold % and then trigger the alert.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HttpStatus  app        count    percent
400         App1        30      58.82352941
200         App1        15      29.41176471
500         App1        6       11.76470588
200         App2        3813    11.66162033
400         App2        2       0.006116769
500         App2        28882   88.3322629
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to use single consolidated alert which can trigger for each applications threshold violation[i plan to use lookup for thresholds] as we do not want to set up 1000 odd individual alerts specific to application&lt;/P&gt;

&lt;P&gt;Can you share your thoughts if there is a way to achieve this or something similar.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 03:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/373999#M6630</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2018-02-13T03:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Consolidated Alerting using TOP command</title>
      <link>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/374000#M6631</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc | top HttpStatus app limit=0 | eventstats sum(count) AS app_total BY app | eval app_percent=(count/app_total)*100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 03:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/374000#M6631</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-13T03:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Consolidated Alerting using TOP command</title>
      <link>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/374001#M6632</link>
      <description>&lt;P&gt;thank you micahkemp, it worked like charm.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 20:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Consolidated-Alerting-using-TOP-command/m-p/374001#M6632</guid>
      <dc:creator>newbie2tech</dc:creator>
      <dc:date>2018-02-13T20:34:14Z</dc:date>
    </item>
  </channel>
</rss>

