<?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 do you suppress an alert when indexer(s) are down? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277241#M83611</link>
    <description>&lt;P&gt;shouldn't that read &lt;CODE&gt;| where IndexerDown=0 AND ForwarderUp=0&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2016 00:17:30 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2016-02-10T00:17:30Z</dc:date>
    <item>
      <title>How do you suppress an alert when indexer(s) are down?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277239#M83609</link>
      <description>&lt;P&gt;We have a lot of searches that run to ensure we are receiving data from a Splunk forwarder and that it is still running.  To do this, we have a search set up for each forwarder checking against the internal logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*metrics.log" group=tcpin_connections | eval sourceHost=if(isnull(hostname), sourceHost,hostname) | search sourceHost="phpdbo01"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above alerts us when the forwarder phpdbo01 is down/not sending information back to indexers.  One of the issues we have is that we want to have a default message come through, if Splunk attempts to run a search and the indexers are down, we would like for a message such as &lt;EM&gt;"Splunk indexers are down please resubmit your search once they come back up"&lt;/EM&gt;, because in many cases, as with the alert above, we are looking for an absence of data to trigger an alert.  When the above search runs and the indexers are down, Splunk returns 0 results and so sends out an alert that the phpdbo01 forwarder is down. I was trying to work with the below, but I am not having a great deal of luck:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*splunkd.log" host="pl-wlmsplpp01" "Unable to distribute to peer named" | rex field=_raw "Unable to distribute to peer named (?.*):\d+ at " | eval status=if(indexer=="pl-wlmsplpp04" OR indexer=="pl-wlmsplpp03","Down","Up") | eval search_result = if(status!="Down",[search index="_internal" source="*metrics.log" group=tcpin_connections | eval sourceHost=if(isnull(hostname), sourceHost,hostname) | search sourceHost="phpdbo01"], "Indexer is down. please run search again at a later date") | table search_result
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unfortunately, I have been unable to get the above working. Can anyone help or have you already done something similar that could be adapted?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 16:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277239#M83609</guid>
      <dc:creator>mookiie2005</dc:creator>
      <dc:date>2016-02-09T16:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do you suppress an alert when indexer(s) are down?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277240#M83610</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/search/distributed/peers splunk_server=local | where status!="Up" | stats count as IndexerDown | appendcols [search index="_internal" source="*metrics.log" group=tcpin_connections | eval sourceHost=if(isnull(hostname), sourceHost,hostname) | search sourceHost="phpdbo01" | stats count as ForwarderUp] | where IndexerDown&amp;gt;0 OR ForwarderUp&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So this will give alert only when both IndexerDown=0 (means all indexers are up) and ForwarderUp=0 (means no event from Forwarder)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2016 17:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277240#M83610</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-09T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you suppress an alert when indexer(s) are down?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277241#M83611</link>
      <description>&lt;P&gt;shouldn't that read &lt;CODE&gt;| where IndexerDown=0 AND ForwarderUp=0&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 00:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-suppress-an-alert-when-indexer-s-are-down/m-p/277241#M83611</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-02-10T00:17:30Z</dc:date>
    </item>
  </channel>
</rss>

