<?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: Splunk Alert when license reaches 80% of usage and is about to expire. in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-when-license-reaches-80-of-usage-and-is-about-to/m-p/443244#M11177</link>
    <description>&lt;P&gt;you have prebuilt alert for it in splunk&lt;BR /&gt;
settings -&amp;gt; Monitoring Console -&amp;gt; settings (dropdown) -&amp;gt; Alerts Setup &lt;BR /&gt;
enable and modify thresholds to the following:&lt;BR /&gt;
DMC Alert - Expired and Soon To Expire Licenses&lt;BR /&gt;
DMC Alert - Total License Usage Near Daily Quota&lt;/P&gt;

&lt;P&gt;or copy the searches, pay attention to macros (use the job inspector to see full search)&lt;/P&gt;

&lt;P&gt;Hope it helps&lt;/P&gt;

&lt;P&gt;p.s. license should probably run daily or every 4 hours or so.&lt;BR /&gt;
most of the time i have seen users alert if at mid day, they are more than 50% daily license usage.&lt;BR /&gt;
you can apply the same principal&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 01:46:29 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2018-10-24T01:46:29Z</dc:date>
    <item>
      <title>Splunk Alert when license reaches 80% of usage and is about to expire.</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-when-license-reaches-80-of-usage-and-is-about-to/m-p/443243#M11176</link>
      <description>&lt;P&gt;We are using following query however would want some validation on it. What should be the earliest and latest time spans?&lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log type=Usage earliest=-0h@d latest=now splunk_server=&lt;/EM&gt; pool=*&lt;BR /&gt;
| eval KB=round(b/1024) | eval MB=round(KB/1024,2) | eval GB=round(MB/1024,2) | eval TB=round(GB/1024,2) &lt;BR /&gt;
| stats sum(MB) as TotalUsed, sum(b) as TotalBytesUsed by pool, poolsz&lt;BR /&gt;
| eval perc = tostring(round(TotalBytesUsed/poolsz*100,4))."%"&lt;BR /&gt;
| eval poolsz = case("MB"="TB", poolsz/1024/1024/1024/1024, "MB"="GB", poolsz/1024/1024/1024, "MB"="MB", poolsz/1024/1024, "MB"="KB", poolsz/1024)&lt;BR /&gt;
| eval poolsz =tostring(poolsz)." MB"&lt;BR /&gt;
| eval TotalUsed = tostring(TotalUsed)." MB"&lt;BR /&gt;
| rename pool as "License Pool", poolsz as "Pool Size", TotalUsed as "Total Used", perc as "Percent Used" | table "License Pool" "Pool Size" "Total Used" "Percent Used"| search "Percent Used"&amp;gt;80&lt;/P&gt;

&lt;P&gt;Also we need to know what should be the date time range for the alert to be run [should it be all time]. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-when-license-reaches-80-of-usage-and-is-about-to/m-p/443243#M11176</guid>
      <dc:creator>JuhiSaxena</dc:creator>
      <dc:date>2020-09-29T21:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert when license reaches 80% of usage and is about to expire.</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-when-license-reaches-80-of-usage-and-is-about-to/m-p/443244#M11177</link>
      <description>&lt;P&gt;you have prebuilt alert for it in splunk&lt;BR /&gt;
settings -&amp;gt; Monitoring Console -&amp;gt; settings (dropdown) -&amp;gt; Alerts Setup &lt;BR /&gt;
enable and modify thresholds to the following:&lt;BR /&gt;
DMC Alert - Expired and Soon To Expire Licenses&lt;BR /&gt;
DMC Alert - Total License Usage Near Daily Quota&lt;/P&gt;

&lt;P&gt;or copy the searches, pay attention to macros (use the job inspector to see full search)&lt;/P&gt;

&lt;P&gt;Hope it helps&lt;/P&gt;

&lt;P&gt;p.s. license should probably run daily or every 4 hours or so.&lt;BR /&gt;
most of the time i have seen users alert if at mid day, they are more than 50% daily license usage.&lt;BR /&gt;
you can apply the same principal&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 01:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-when-license-reaches-80-of-usage-and-is-about-to/m-p/443244#M11177</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-10-24T01:46:29Z</dc:date>
    </item>
  </channel>
</rss>

