<?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: Get alerted if same error happening on multiple hosts in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145804#M2373</link>
    <description>&lt;P&gt;Thanks that helped!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Sep 2014 14:44:47 GMT</pubDate>
    <dc:creator>jrlesch</dc:creator>
    <dc:date>2014-09-30T14:44:47Z</dc:date>
    <item>
      <title>Get alerted if same error happening on multiple hosts</title>
      <link>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145800#M2369</link>
      <description>&lt;P&gt;I have the same suite of tests running on multiple hosts. I want to set up an alert if a specific test fails on 2 or more hosts. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=teamcity LogFailure name="'tests/cluster/pay/*'"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is my search to get all the tests the failed. The "name" is the name of the test. &lt;/P&gt;

&lt;P&gt;How do I tell if the test is throwing the same LogFailure on multiple hosts.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145800#M2369</guid>
      <dc:creator>jrlesch</dc:creator>
      <dc:date>2014-09-30T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get alerted if same error happening on multiple hosts</title>
      <link>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145801#M2370</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=teamcity LogFailure name="'tests/cluster/pay/*'" | stats dc(host) as count | where count&amp;gt;=2 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set an alert if above search returns any result.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=teamcity LogFailure name="'tests/cluster/pay/*'" | stats dc(host) as count  by name| where count&amp;gt;=2 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should get distinct count of host for each values of name i.e. test names and will list of tests which have failed in more than 1 hosts. The alert condition should be same.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 13:57:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145801#M2370</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-09-30T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get alerted if same error happening on multiple hosts</title>
      <link>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145802#M2371</link>
      <description>&lt;P&gt;I guess the problem with that is that it is checking for any test under tests/cluster/pay/ failing on more than 2. I was looking to search for specific tests failing on multiple hosts. But there are 50 tests under pay. Does that make sense?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145802#M2371</guid>
      <dc:creator>jrlesch</dc:creator>
      <dc:date>2014-09-30T14:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get alerted if same error happening on multiple hosts</title>
      <link>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145803#M2372</link>
      <description>&lt;P&gt;See if the updated answer, which counts no of hosts for each specific tests, suits your requirement.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145803#M2372</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-09-30T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get alerted if same error happening on multiple hosts</title>
      <link>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145804#M2373</link>
      <description>&lt;P&gt;Thanks that helped!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Get-alerted-if-same-error-happening-on-multiple-hosts/m-p/145804#M2373</guid>
      <dc:creator>jrlesch</dc:creator>
      <dc:date>2014-09-30T14:44:47Z</dc:date>
    </item>
  </channel>
</rss>

