<?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 create a single alert to trigger only when a threshold is passed by a single index, not all indexes combined? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231104#M4301</link>
    <description>&lt;P&gt;the problem is that this query return only the number of every index, if it's higher than 50, I need something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  sourcetype=windows  EventId=X status=Y earliest=-5m | stats count by EventID | where count&amp;gt;5 | search tstats count WHERE index=* by index|  where count&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically I need to execute the first part of the query, for all the indexes, but I need to display separate results for each of the indexes.&lt;BR /&gt;
Is it possible?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2015 10:09:58 GMT</pubDate>
    <dc:creator>Federica_92</dc:creator>
    <dc:date>2015-09-24T10:09:58Z</dc:date>
    <item>
      <title>How to create a single alert to trigger only when a threshold is passed by a single index, not all indexes combined?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231102#M4299</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;

&lt;P&gt;I'm trying to write an alert, covering all indexes, that triggers when a specific number (say, 50) of events occur. However, I only want the alert to trigger if all 50 events are in the same index, not, for example, 40 in one index and 10 in another. Is there a way to specify this in the search string, or would I need to have a different alert for each index?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 14:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231102#M4299</guid>
      <dc:creator>khagan</dc:creator>
      <dc:date>2015-09-18T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a single alert to trigger only when a threshold is passed by a single index, not all indexes combined?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231103#M4300</link>
      <description>&lt;P&gt;Will something like this would work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* by index | where count&amp;gt;50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Sep 2015 18:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231103#M4300</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-18T18:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a single alert to trigger only when a threshold is passed by a single index, not all indexes combined?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231104#M4301</link>
      <description>&lt;P&gt;the problem is that this query return only the number of every index, if it's higher than 50, I need something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  sourcetype=windows  EventId=X status=Y earliest=-5m | stats count by EventID | where count&amp;gt;5 | search tstats count WHERE index=* by index|  where count&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically I need to execute the first part of the query, for all the indexes, but I need to display separate results for each of the indexes.&lt;BR /&gt;
Is it possible?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 10:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231104#M4301</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-09-24T10:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a single alert to trigger only when a threshold is passed by a single index, not all indexes combined?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231105#M4302</link>
      <description>&lt;P&gt;Hi khagan, you can do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | stats count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then through the gui (or savedsearches), you can make a custom alert to only trigger when one of the counts is &amp;gt; 50, but still display all of the counts.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/662iC9CF1EB797ABC6DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 21:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-create-a-single-alert-to-trigger-only-when-a-threshold-is/m-p/231105#M4302</guid>
      <dc:creator>sover</dc:creator>
      <dc:date>2015-09-24T21:56:39Z</dc:date>
    </item>
  </channel>
</rss>

