<?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 Real-time alert conditions in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119297#M1804</link>
    <description>&lt;P&gt;I observed an surprising Splunk behaviour creating a real-time alert for the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="thirdlane" sourcetype="asterisk_queue_log_*" 
| TRANSACTION callid maxspan=10m startswith(event=ENTERQUEUE)
| SEARCH (event=EXITEMPTY OR event=AGENTDUMP OR event=EXITWITHKEY OR event=EXITWITHTIMEOUT OR event=ABANDON) 
| REX "(?i)\|ENTERQUEUE\|.*?\|(?P&amp;lt;tlfnumber&amp;gt;.+)\|"
| TABLE _time tlfnumber queuename duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When the alert condition is '&lt;STRONG&gt;always&lt;/STRONG&gt;', the received email contains an unexpected result (tlfnumber='' and duration=0).&lt;/P&gt;

&lt;P&gt;Otherwise, when the alert condition is '&lt;STRONG&gt;if number of events is greater than 0&lt;/STRONG&gt;', the received email contains the expected result. But, when I edit the email action, Splunk displays the following message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Unsupported Alert. 
A real-time alert with a time range of all-time and a condition other than always is not supported. 
It is recommended you change the time range of the alert to something other than Start Time 'rt' Finish Time 'rt' in Settings.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this the expected behaviour? &lt;BR /&gt;
What is the explanation of this behaviour?&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2015 12:04:54 GMT</pubDate>
    <dc:creator>gtorrent</dc:creator>
    <dc:date>2015-03-31T12:04:54Z</dc:date>
    <item>
      <title>Real-time alert conditions</title>
      <link>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119297#M1804</link>
      <description>&lt;P&gt;I observed an surprising Splunk behaviour creating a real-time alert for the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="thirdlane" sourcetype="asterisk_queue_log_*" 
| TRANSACTION callid maxspan=10m startswith(event=ENTERQUEUE)
| SEARCH (event=EXITEMPTY OR event=AGENTDUMP OR event=EXITWITHKEY OR event=EXITWITHTIMEOUT OR event=ABANDON) 
| REX "(?i)\|ENTERQUEUE\|.*?\|(?P&amp;lt;tlfnumber&amp;gt;.+)\|"
| TABLE _time tlfnumber queuename duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When the alert condition is '&lt;STRONG&gt;always&lt;/STRONG&gt;', the received email contains an unexpected result (tlfnumber='' and duration=0).&lt;/P&gt;

&lt;P&gt;Otherwise, when the alert condition is '&lt;STRONG&gt;if number of events is greater than 0&lt;/STRONG&gt;', the received email contains the expected result. But, when I edit the email action, Splunk displays the following message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Unsupported Alert. 
A real-time alert with a time range of all-time and a condition other than always is not supported. 
It is recommended you change the time range of the alert to something other than Start Time 'rt' Finish Time 'rt' in Settings.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this the expected behaviour? &lt;BR /&gt;
What is the explanation of this behaviour?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119297#M1804</guid>
      <dc:creator>gtorrent</dc:creator>
      <dc:date>2015-03-31T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time alert conditions</title>
      <link>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119298#M1805</link>
      <description>&lt;P&gt;hi gtorrent,&lt;BR /&gt;
for the Real-time alert condition, do not specify the timerange. leave this field empty, The real-time alert specifies when the search runs.&lt;/P&gt;

&lt;P&gt;try to following this link: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Alert/Defineper-resultalerts"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Alert/Defineper-resultalerts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119298#M1805</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2015-03-31T13:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time alert conditions</title>
      <link>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119299#M1806</link>
      <description>&lt;P&gt;I have not modified the time range values. The time range values are: 'rt'.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:52:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119299#M1806</guid>
      <dc:creator>gtorrent</dc:creator>
      <dc:date>2015-03-31T13:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Real-time alert conditions</title>
      <link>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119300#M1807</link>
      <description>&lt;P&gt;Additional info: We are running splunk 6.1.2 (build 213098) on a linux machine.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 06:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Real-time-alert-conditions/m-p/119300#M1807</guid>
      <dc:creator>gtorrent</dc:creator>
      <dc:date>2015-04-01T06:54:58Z</dc:date>
    </item>
  </channel>
</rss>

