<?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: Requesting help to create an alert as below. in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Requesting-help-to-create-an-alert-as-below/m-p/442090#M7740</link>
    <description>&lt;P&gt;there are many answers for this topic in this portal, here are some examples:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/716733/how-do-you-calculate-the-growth-of-each-index-on-a.html"&gt;https://answers.splunk.com/answers/716733/how-do-you-calculate-the-growth-of-each-index-on-a.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/231310/calculating-the-percentage-growth-value-of-a-field.html"&gt;https://answers.splunk.com/answers/231310/calculating-the-percentage-growth-value-of-a-field.html&lt;/A&gt;&lt;BR /&gt;
and also many ways to calculate the size and growth of an index ...&lt;BR /&gt;
here is a quick draw, i hope you will find it useful:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type="Usage" idx IN(proxy Dns windows Linux Firewall)
| bin _time span=1d 
| eventstats sum(b) as daily_b by idx _time 
| eval daily_mb = daily_b/1024/1024
| stats max(daily_mb) as total_daily by _time idx
| streamstats window=30 current=f global=f avg(total_daily) as running_avg by idx
| eval ten_percent_on_top = running_avg + running_avg/10
| eval flag = if(total_daily&amp;gt;ten_percent_on_top,"Alarm","All Good")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;note, this search can get expensive as the data is verbose. its recommended to summarize your daily license stats and query the summary index with the data &lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 17:18:47 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2019-06-26T17:18:47Z</dc:date>
    <item>
      <title>Requesting help to create an alert as below.</title>
      <link>https://community.splunk.com/t5/Alerting/Requesting-help-to-create-an-alert-as-below/m-p/442089#M7739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please can some one help me t create the alert for below requirement.&lt;/P&gt;

&lt;P&gt;"For the following indexes below, create an alert that monitors license volume exceeding 10% of the rolling average of the last 30 days of volume.&lt;/P&gt;

&lt;P&gt;1 proxy&lt;BR /&gt;
2 Dns&lt;BR /&gt;
3 windows&lt;BR /&gt;
4 Linux&lt;BR /&gt;
5 Firewall"&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 05:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Requesting-help-to-create-an-alert-as-below/m-p/442089#M7739</guid>
      <dc:creator>x1045866</dc:creator>
      <dc:date>2019-06-26T05:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Requesting help to create an alert as below.</title>
      <link>https://community.splunk.com/t5/Alerting/Requesting-help-to-create-an-alert-as-below/m-p/442090#M7740</link>
      <description>&lt;P&gt;there are many answers for this topic in this portal, here are some examples:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/716733/how-do-you-calculate-the-growth-of-each-index-on-a.html"&gt;https://answers.splunk.com/answers/716733/how-do-you-calculate-the-growth-of-each-index-on-a.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/231310/calculating-the-percentage-growth-value-of-a-field.html"&gt;https://answers.splunk.com/answers/231310/calculating-the-percentage-growth-value-of-a-field.html&lt;/A&gt;&lt;BR /&gt;
and also many ways to calculate the size and growth of an index ...&lt;BR /&gt;
here is a quick draw, i hope you will find it useful:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log type="Usage" idx IN(proxy Dns windows Linux Firewall)
| bin _time span=1d 
| eventstats sum(b) as daily_b by idx _time 
| eval daily_mb = daily_b/1024/1024
| stats max(daily_mb) as total_daily by _time idx
| streamstats window=30 current=f global=f avg(total_daily) as running_avg by idx
| eval ten_percent_on_top = running_avg + running_avg/10
| eval flag = if(total_daily&amp;gt;ten_percent_on_top,"Alarm","All Good")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;note, this search can get expensive as the data is verbose. its recommended to summarize your daily license stats and query the summary index with the data &lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Requesting-help-to-create-an-alert-as-below/m-p/442090#M7740</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-06-26T17:18:47Z</dc:date>
    </item>
  </channel>
</rss>

