<?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 Question on setting up the alerts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537151#M151831</link>
    <description>&lt;P&gt;I have a search query that outputs the count of the event for all the host (i.e., | stats count by host)&lt;/P&gt;&lt;P&gt;Now if the count is greater than 5,(for say host 1 and host 2 together gives more than 5 counts),an alert has to be triggered..&lt;/P&gt;&lt;P&gt;Let me know how..&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 05:03:49 GMT</pubDate>
    <dc:creator>prettysunshinez</dc:creator>
    <dc:date>2021-01-26T05:03:49Z</dc:date>
    <item>
      <title>Question on setting up the alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537151#M151831</link>
      <description>&lt;P&gt;I have a search query that outputs the count of the event for all the host (i.e., | stats count by host)&lt;/P&gt;&lt;P&gt;Now if the count is greater than 5,(for say host 1 and host 2 together gives more than 5 counts),an alert has to be triggered..&lt;/P&gt;&lt;P&gt;Let me know how..&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 05:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537151#M151831</guid>
      <dc:creator>prettysunshinez</dc:creator>
      <dc:date>2021-01-26T05:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Question on setting up the alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537212#M151849</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count by host
| stats sum(count) as count
| where count &amp;gt; 5&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Jan 2021 13:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537212#M151849</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-26T13:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question on setting up the alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537608#M152002</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;for the suggestion..&lt;/P&gt;&lt;P&gt;But what i would want is,to have host wise count in the alert mail..and the alert has to be triggered if the overall count is greater than 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 12:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537608#M152002</guid>
      <dc:creator>prettysunshinez</dc:creator>
      <dc:date>2021-01-28T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question on setting up the alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537632#M152008</link>
      <description>&lt;P&gt;You could try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count by host
| streamstats sum(count) as total_count
| where total_count &amp;gt; 5&lt;/LI-CODE&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 14:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537632#M152008</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-01-28T14:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on setting up the alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537635#M152009</link>
      <description>&lt;P&gt;Perhaps this will fill the need.&amp;nbsp; Search for this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count by host 
| addcoltotals labelfield=host label=TOTAL count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;then have the alert trigger using the Custom setting:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search (host=TOTAL AND count &amp;gt; 5)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 28 Jan 2021 14:28:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Question-on-setting-up-the-alerts/m-p/537635#M152009</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-28T14:28:50Z</dc:date>
    </item>
  </channel>
</rss>

