<?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 Splunk conditional alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27519#M231</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I have a saved search which returns the status of certain services in our infrastructure.&lt;BR /&gt;
It returns in this format:&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
Servicename | Status&lt;BR /&gt;
Service 1   |  OK&lt;BR /&gt;
Service 2   |  OK&lt;BR /&gt;
Service 3   |  OK&lt;BR /&gt;
Service 4   |  Error 204&lt;BR /&gt;
Service 5   |  Error 400&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;I want the search to trigger an hourly alert if any of the systems aren't "OK". I'm using the following custom condition:&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;where "Service 1"!="OK" OR "Service 2"!="OK" OR "Service 3"!="OK" OR "Service 4"!="OK" OR "Service 5"!="OK"&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;The problem I'm having, is that the alert is triggering every hour when the service status is "OK". It doesn't seem to be accepting the conditions.&lt;/P&gt;

&lt;P&gt;Can anyone see something wrong with my conditions? I can't find much in the documentation to go on with..&lt;/P&gt;</description>
    <pubDate>Thu, 08 Nov 2012 10:12:29 GMT</pubDate>
    <dc:creator>watsm10</dc:creator>
    <dc:date>2012-11-08T10:12:29Z</dc:date>
    <item>
      <title>Splunk conditional alert</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27519#M231</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I have a saved search which returns the status of certain services in our infrastructure.&lt;BR /&gt;
It returns in this format:&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
Servicename | Status&lt;BR /&gt;
Service 1   |  OK&lt;BR /&gt;
Service 2   |  OK&lt;BR /&gt;
Service 3   |  OK&lt;BR /&gt;
Service 4   |  Error 204&lt;BR /&gt;
Service 5   |  Error 400&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;I want the search to trigger an hourly alert if any of the systems aren't "OK". I'm using the following custom condition:&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;where "Service 1"!="OK" OR "Service 2"!="OK" OR "Service 3"!="OK" OR "Service 4"!="OK" OR "Service 5"!="OK"&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;The problem I'm having, is that the alert is triggering every hour when the service status is "OK". It doesn't seem to be accepting the conditions.&lt;/P&gt;

&lt;P&gt;Can anyone see something wrong with my conditions? I can't find much in the documentation to go on with..&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27519#M231</guid>
      <dc:creator>watsm10</dc:creator>
      <dc:date>2012-11-08T10:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk conditional alert</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27520#M232</link>
      <description>&lt;P&gt;I don't have access to my Splunk Server right now. However, I would use a nested 'IF' command to check the conditions and raise the alert.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:25:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27520#M232</guid>
      <dc:creator>miteshvohra</dc:creator>
      <dc:date>2012-11-08T10:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk conditional alert</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27521#M233</link>
      <description>&lt;P&gt;Hi, thanks for the suggestion. I tried this, but it didn't make a difference. I was using the transpose command to make the table look neater, but this seems to cause problems when using it in conjunction with alerts. I removed the transpose command and it started to work, but the e-mail from the alert isn't in the format I showed in the question. I suppose it will have to do!&lt;/P&gt;

&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
Service 1 | Service 2 | Service 3 | Service 4 | Service 5&lt;BR /&gt;
    OK    | Error 400 |    OK     |    OK     |    OK&lt;BR /&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2012 13:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27521#M233</guid>
      <dc:creator>watsm10</dc:creator>
      <dc:date>2012-11-08T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk conditional alert</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27522#M234</link>
      <description>&lt;P&gt;Can you share / email me the search string? I now have access a Test Splunk instance.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2012 17:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27522#M234</guid>
      <dc:creator>miteshvohra</dc:creator>
      <dc:date>2012-11-09T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk conditional alert</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27523#M235</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I need to setup a condition to an existing alert where the alert shouldn't trigger on next day of Bank Holidays. How do i set that condition .The Alert looks for specific file on a server &lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 16:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27523#M235</guid>
      <dc:creator>nages</dc:creator>
      <dc:date>2017-02-09T16:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk conditional alert</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27524#M236</link>
      <description>&lt;P&gt;Hi @nages, &lt;/P&gt;

&lt;P&gt;This post is a few years old so it may not garner the type of activity that you're seeking. If you need some help, I would suggest posting a new question. &lt;/P&gt;

&lt;P&gt;Or, if you want to try to get some immediate help for your question, you should join the 1300+ Splunk users in our public Slack chat. People ask each other for immediate help on there daily. You can share your question there to see if anyone can take a stab at it.&lt;/P&gt;

&lt;P&gt;You first have to request access through &lt;A href="http://www.splunk402.com/chat"&gt;www.splunk402.com/chat&lt;/A&gt;. Fill out the form, and once you receive the approval email from our Community Manager (usually the approval process takes a couple days), you can access Slack.com and ask for help in the #general channel.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 17:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-conditional-alert/m-p/27524#M236</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-02-09T17:34:33Z</dc:date>
    </item>
  </channel>
</rss>

