<?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: Email actions for Builtin Licensing alerts in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30922#M301</link>
    <description>&lt;P&gt;Hi thanks for the answer, but how do I send out an email if this alert is hit? thanks&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2011 23:58:04 GMT</pubDate>
    <dc:creator>welkinson</dc:creator>
    <dc:date>2011-12-13T23:58:04Z</dc:date>
    <item>
      <title>Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30920#M299</link>
      <description>&lt;P&gt;Hi! Just wanted to ask does anybody know how I can set the built-in licensing alerts to send out email to me whenever it is hit? What file do I need to edit and what parameters should I add.&lt;/P&gt;

&lt;P&gt;Thanks A lot!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2011 03:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30920#M299</guid>
      <dc:creator>welkinson</dc:creator>
      <dc:date>2011-12-08T03:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30921#M300</link>
      <description>&lt;P&gt;It is simple to write your own scheduled search that fires a licensing alert.&lt;/P&gt;

&lt;P&gt;As an example, this is a search that will fire an alert when the total daily license usage exceeds ~ 10 GB.&lt;/P&gt;

&lt;P&gt;To target the previous calendar day , I use earliest "-1d@d" , latest "@d" , and schedule the search to run once a day at midnight.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage* pool="your_license_pool" | eval GB=b/1024/1024/1024 | stats sum(GB) by pool | where 'sum(GB)' &amp;gt; 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Dec 2011 07:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30921#M300</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2011-12-08T07:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30922#M301</link>
      <description>&lt;P&gt;Hi thanks for the answer, but how do I send out an email if this alert is hit? thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2011 23:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30922#M301</guid>
      <dc:creator>welkinson</dc:creator>
      <dc:date>2011-12-13T23:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30923#M302</link>
      <description>&lt;P&gt;1) Configure your email server settings in :&lt;/P&gt;

&lt;P&gt;Manager &amp;gt;&amp;gt; System settings &amp;gt;&amp;gt; Email alert settings &lt;/P&gt;

&lt;P&gt;2) And then configure your scheduled search to fire an email :&lt;/P&gt;

&lt;P&gt;Manager &amp;gt;&amp;gt; Searches and reports &amp;gt;&amp;gt; Your Search&lt;/P&gt;

&lt;P&gt;Start time = -1d@d&lt;BR /&gt;
End time = @d&lt;BR /&gt;
Schedule this search = tick checkbox&lt;BR /&gt;
Schedule type = basic&lt;BR /&gt;
Run every = day at midnight&lt;BR /&gt;
Condition = if custom condition is met&lt;BR /&gt;
Custom condition search  = search count &amp;gt; 0&lt;/P&gt;

&lt;P&gt;In the "Alert actions" section,  enable "Send Email" , and specify the email addresses to send to and a custom subject line.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 00:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30923#M302</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2011-12-14T00:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30924#M303</link>
      <description>&lt;P&gt;Damien's solution forces you to put an arbitrary number in the search.  How can I do this and reference the pool size?  I only care if the limit was exceeded and this search needs to automatically adjust if the pool size is adjisted.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2012 16:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30924#M303</guid>
      <dc:creator>agent613</dc:creator>
      <dc:date>2012-06-28T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30925#M304</link>
      <description>&lt;P&gt;In &amp;gt;=4.3, you can use the new "index=_internal sourcetype=splunkd type=RolloverSummary" event to easily alert if the previous day had indexed more than a certain percentage of the available license pool without having to write a search that does any calculations.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Create a search that looks like:&lt;/P&gt;

&lt;P&gt;earliest=@d latest=now sourcetype=splunkd index=_internal type=RolloverSummary | where b &amp;gt; poolsz*0.8&lt;/P&gt;

&lt;P&gt;This search will yield a result if the bytes indexed are greater than 80% of the pool size. Adjust the comparison to suit your needs&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Schedule it to run early in the morning, but not at midnight. This event will be inserted shortly after midnight, so schedule this to run at 1am or something&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Alert if the search count returns more than zero results&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 07 Aug 2012 14:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30925#M304</guid>
      <dc:creator>walkeran</dc:creator>
      <dc:date>2012-08-07T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30926#M305</link>
      <description>&lt;P&gt;&lt;EM&gt;Important note!&lt;/EM&gt; Starting in version 4.3, the search in this answer will match more events than you want it to, and essentially cause the result to be the sum of the previous two days worth of indexed data.&lt;/P&gt;

&lt;P&gt;To keep the functionality the same, one should also add "type=Usage" to the search. The easier alternative, however, would be to use the "type=RolloverSummary" event which contains a total of the previous days usage. ( see my alternative answer to this question &lt;A href="http://splunk-base.splunk.com/answer_link/55212/"&gt;http://splunk-base.splunk.com/answer_link/55212/&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 15:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30926#M305</guid>
      <dc:creator>walkeran</dc:creator>
      <dc:date>2012-08-07T15:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Email actions for Builtin Licensing alerts</title>
      <link>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30927#M306</link>
      <description>&lt;P&gt;Thanks for this, walkeran.  This is a much faster and more flexible solution than the previous.  However, it's not totally correct.  Your search will only produce results if a single indexer in the pool has exceeded the pool allocation.  What is needed, is to find if all of the indexers in the pool combined have exceeded the allocation.&lt;/P&gt;

&lt;P&gt;Here is the modified solution:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=@d latest=now sourcetype=splunkd index=_internal type=RolloverSummary source=*license_usage.log |stats sum(b) as usage by pool, poolsz| where  usage &amp;gt; poolsz|eval usage = usage/1024/1024/1024| eval poolsz = poolsz/1024/1024/1024
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Sep 2012 18:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-actions-for-Builtin-Licensing-alerts/m-p/30927#M306</guid>
      <dc:creator>agent613</dc:creator>
      <dc:date>2012-09-04T18:40:55Z</dc:date>
    </item>
  </channel>
</rss>

