<?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: How to setup alert to send an email when daily indexing volume limit is exceeded? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114298#M30225</link>
    <description>&lt;P&gt;Thanks martin_mueller. It works great!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2014 02:17:13 GMT</pubDate>
    <dc:creator>kavraja</dc:creator>
    <dc:date>2014-09-08T02:17:13Z</dc:date>
    <item>
      <title>How to setup alert to send an email when daily indexing volume limit is exceeded?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114296#M30223</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;

&lt;P&gt;I'm trying to set up a custom alert that would send out an email whenever the daily indexing volume is exceeded. The search I am running is:&lt;/P&gt;

&lt;P&gt;index=_internal metrics kb group="per _index _thruput" series!= _*| eval totalGB = (kb / 1024) / 1024 | timechart span=1d sum(totalGB) as total&lt;/P&gt;

&lt;P&gt;NB: I've put spaces between "per_index.." and so on so the formatting doesn't get confusing&lt;/P&gt;

&lt;P&gt;Which shows how many gigs have been indexed for the day when run as the past 24 hours. &lt;/P&gt;

&lt;P&gt;This works fine but my issue is that I can't figure out how to create the custom search that would monitor this search from the start of the day and send an alert when the gigs is above 2 for example.&lt;/P&gt;

&lt;P&gt;In the alert option, I have scheduled it to run every hour and put in a custom search condition as "search total &amp;gt; 2". The problem with this is that the search only searches the indexing done for the past hour and not for the whole day. Meaning the results from the alert keep showing up as either 0.3 and so on every hour.&lt;/P&gt;

&lt;P&gt;Is there a way I can run the alert every hour but have it take into account the amount indexed for the whole day?&lt;/P&gt;

&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 01:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114296#M30223</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2014-09-08T01:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup alert to send an email when daily indexing volume limit is exceeded?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114297#M30224</link>
      <description>&lt;P&gt;You can set the time range from &lt;CODE&gt;@d&lt;/CODE&gt; to &lt;CODE&gt;now&lt;/CODE&gt; and set a cron schedule of &lt;CODE&gt;1 * * * *&lt;/CODE&gt;, which would run the search every hour at one minute past.&lt;/P&gt;

&lt;P&gt;Note, Splunk has a better way of calculating the current day's license usage - see Settings -&amp;gt; Licensing -&amp;gt; Usage Report, for example the top right panel "Today's Percentage of Daily License Quota Used per Pool" is basically what you need for your alert. That lists all your license pools along with a percentage used, set the alert to trigger if a pool reaches 90% or whatever you need.&lt;BR /&gt;
To get the search behind the panel you can just click the magnifying glass in the bottom left corner of the panel, and save that as an alert.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 02:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114297#M30224</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-08T02:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup alert to send an email when daily indexing volume limit is exceeded?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114298#M30225</link>
      <description>&lt;P&gt;Thanks martin_mueller. It works great!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 02:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-alert-to-send-an-email-when-daily-indexing-volume/m-p/114298#M30225</guid>
      <dc:creator>kavraja</dc:creator>
      <dc:date>2014-09-08T02:17:13Z</dc:date>
    </item>
  </channel>
</rss>

