<?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: Alerts on license usage for Splunk 6.1 in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160392#M2638</link>
    <description>&lt;P&gt;What is the path of this file?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2015 08:06:41 GMT</pubDate>
    <dc:creator>athorat</dc:creator>
    <dc:date>2015-06-25T08:06:41Z</dc:date>
    <item>
      <title>Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160384#M2630</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;

&lt;P&gt;I am using the query to get the data indexed per day&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*metrics.log" per_index_thruput | eval GB=kb/(1024*1024) |stats  sum(GB)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And want to trigger an email when the indexed data reaches 20GB.&lt;BR /&gt;
in custom condition I am using&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where sum(GB) &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am not getting an email for this alert.&lt;BR /&gt;
Not sure what's going wrong about this one.Getting emails for other alerts.&lt;BR /&gt;
Is the query correct?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 22:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160384#M2630</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-06-17T22:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160385#M2631</link>
      <description>&lt;P&gt;Hi athorat,&lt;/P&gt;

&lt;P&gt;Well, if you run this search directly in Splunk like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*metrics.log" per_index_thruput | eval GB=kb/(1024*1024) |stats  sum(GB) | where sum(GB) &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will get a nice error message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Error in 'where' command: The 'sum' function is unsupported or undefined.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, if you run it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*metrics.log" per_index_thruput | eval GB=kb/(1024*1024) |stats  sum(GB) AS sum | where sum &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;all works as expected.&lt;/P&gt;

&lt;P&gt;Hope that helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 22:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160385#M2631</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-17T22:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160386#M2632</link>
      <description>&lt;P&gt;Hey MuS,&lt;/P&gt;

&lt;P&gt;thanks for the reply.&lt;BR /&gt;
So my query in the search is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index="_internal" source="*metrics.log" per_index_thruput | eval GB=kb/(1024*1024) |stats  sum(GB)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and when I Save it as a alert I use&lt;/P&gt;

&lt;P&gt;where sum(GB) &amp;gt; 20&lt;BR /&gt;
So I am not getting the error which you mention its just that the email is not triggered nor do I see the alert being triggered.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Anil.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160386#M2632</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-06-17T23:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160387#M2633</link>
      <description>&lt;P&gt;yes, the reason why you get no email nor the alert is triggered is that &lt;CODE&gt;where sum(GB) &amp;gt; 20&lt;/CODE&gt; does not work. So change it like I said and it will run &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160387#M2633</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-17T23:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160388#M2634</link>
      <description>&lt;P&gt;so I changed the query as per your suggestions &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*metrics.log" per_index_thruput | eval GB=kb/(1024*1024) |stats  sum(GB) AS sum
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in the alerts I am supposed to put the Custom condition  which I did, still does not trigger the alret.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where sum &amp;gt; 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am not sure If I have the query right.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 00:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160388#M2634</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-06-18T00:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160389#M2635</link>
      <description>&lt;P&gt;the query looks good, you probably are not over 20Gb yet. So change it to a lower number like 1Gb &lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 00:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160389#M2635</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-18T00:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160390#M2636</link>
      <description>&lt;P&gt;The data shows its more than 22 GB.&lt;BR /&gt;
Cant attach a snapshot here.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 00:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160390#M2636</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-06-18T00:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160391#M2637</link>
      <description>&lt;P&gt;can you paste the config for this alert from &lt;CODE&gt;savedsearches.conf&lt;/CODE&gt; please?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 01:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160391#M2637</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-18T01:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Alerts on license usage for Splunk 6.1</title>
      <link>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160392#M2638</link>
      <description>&lt;P&gt;What is the path of this file?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 08:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alerts-on-license-usage-for-Splunk-6-1/m-p/160392#M2638</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-06-25T08:06:41Z</dc:date>
    </item>
  </channel>
</rss>

