<?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: Alert not triggering when string value is empty in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646649#M657</link>
    <description>&lt;P class="lia-align-left"&gt;Hey,&lt;/P&gt;&lt;P class="lia-align-left"&gt;The full search which this alert is based on is this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index=XYZ&lt;BR /&gt;| eval _time = strptime(dv_sys_updated_on, "%Y-%m-%d")&lt;BR /&gt;| eval month=strftime(_time, "%m")&lt;BR /&gt;| eval quarter = case(&lt;BR /&gt;month&amp;gt;=2 AND month&amp;lt;=4, "Q1",&lt;BR /&gt;month&amp;gt;=5 AND month&amp;lt;=7, "Q2",&lt;BR /&gt;month&amp;gt;=8 AND month&amp;lt;=10, "Q3",&lt;BR /&gt;month&amp;gt;=11 OR month&amp;lt;=1, "Q4"&lt;BR /&gt;)&lt;BR /&gt;| eval year = if(month&amp;gt;=2, strftime(relative_time(now(), "@y+1y"), "%y"), strftime(now(), "%y"))&lt;BR /&gt;| eval quarter = "FY" . year . quarter&lt;BR /&gt;| search quarter =FY29&lt;/P&gt;&lt;P&gt;| dedup HGF&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;| eval assigned_user=if(RITM == "", "", assigned_user)&lt;BR /&gt;| fields _time, quarter, RITM,&lt;BR /&gt;| table _time, quarter, RITM&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, I am assuming one cannot put this entire query into the trigger condition for the alert?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 12:35:39 GMT</pubDate>
    <dc:creator>POR160893</dc:creator>
    <dc:date>2023-06-12T12:35:39Z</dc:date>
    <item>
      <title>Why is alert not triggering when string value is empty?</title>
      <link>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646627#M655</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a Splunk alert where the trigger condition should be:&lt;BR /&gt;&lt;BR /&gt;search ABC == ""&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;, where ABC is a string field and the alert is only triggered for records with such values as empty.&lt;BR /&gt;&lt;BR /&gt;However, no alert is triggered so far.&lt;BR /&gt;&lt;BR /&gt;What can I do?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646627#M655</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2023-06-12T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering when string value is empty</title>
      <link>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646630#M656</link>
      <description>&lt;P&gt;Try with where command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnull(ABC) OR ABC==""&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Jun 2023 11:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646630#M656</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-12T11:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering when string value is empty</title>
      <link>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646649#M657</link>
      <description>&lt;P class="lia-align-left"&gt;Hey,&lt;/P&gt;&lt;P class="lia-align-left"&gt;The full search which this alert is based on is this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index=XYZ&lt;BR /&gt;| eval _time = strptime(dv_sys_updated_on, "%Y-%m-%d")&lt;BR /&gt;| eval month=strftime(_time, "%m")&lt;BR /&gt;| eval quarter = case(&lt;BR /&gt;month&amp;gt;=2 AND month&amp;lt;=4, "Q1",&lt;BR /&gt;month&amp;gt;=5 AND month&amp;lt;=7, "Q2",&lt;BR /&gt;month&amp;gt;=8 AND month&amp;lt;=10, "Q3",&lt;BR /&gt;month&amp;gt;=11 OR month&amp;lt;=1, "Q4"&lt;BR /&gt;)&lt;BR /&gt;| eval year = if(month&amp;gt;=2, strftime(relative_time(now(), "@y+1y"), "%y"), strftime(now(), "%y"))&lt;BR /&gt;| eval quarter = "FY" . year . quarter&lt;BR /&gt;| search quarter =FY29&lt;/P&gt;&lt;P&gt;| dedup HGF&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;| eval assigned_user=if(RITM == "", "", assigned_user)&lt;BR /&gt;| fields _time, quarter, RITM,&lt;BR /&gt;| table _time, quarter, RITM&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, I am assuming one cannot put this entire query into the trigger condition for the alert?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 12:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646649#M657</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2023-06-12T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alert not triggering when string value is empty</title>
      <link>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646657#M658</link>
      <description>&lt;P&gt;The alert is essentially a report/search - the trigger is based on the results of the search - note that only the first result event is available to the trigger if you want to use fields from the search (as opposed to number of results, for example).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Why-is-alert-not-triggering-when-string-value-is-empty/m-p/646657#M658</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-12T13:22:38Z</dc:date>
    </item>
  </channel>
</rss>

