<?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: If The Else Condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644863#M223308</link>
    <description>&lt;P&gt;You can use a case function to evaluate the value of a field e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval alarm=case(PRIORITY=02 AND Condition="Alarm","Critical",PRIORITY=12 AND Condition="Alarm","High",PRIORITY=22 OR PRIORITY=25 AND Condition="Alarm","Low",PRIORITY=02 OR PRIORITY=12 OR PRIORITY=22 OR PRIORITY=25 AND Condition="Clear","Cleared")&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 28 May 2023 21:01:09 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-05-28T21:01:09Z</dc:date>
    <item>
      <title>Help with If The Else Condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644862#M223307</link>
      <description>&lt;P&gt;&amp;nbsp;am writing an If Then Else Evaluation statement and could use some help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If (PRIORITY=02 AND Condition=Alarm) then&amp;nbsp;&amp;lt;h3 style="color:red;"&amp;gt;A Critical Alarm&amp;lt;/h3&amp;gt;&lt;/P&gt;
&lt;P&gt;else&lt;/P&gt;
&lt;P&gt;If (PRIORITY=12 AND Condition=Alarm) then&amp;nbsp;&amp;lt;h3 style="color:orange;"&amp;gt;A High Alarm&amp;lt;/h3&amp;gt;&lt;/P&gt;
&lt;P&gt;else&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If (PRIORITY=22 OR PRIORITY=25 AND Condition=Alarm) then&amp;nbsp;&amp;lt;h3 style="color:yellow;"&amp;gt;A Low Alarm&amp;lt;/h3&amp;gt;&lt;/P&gt;
&lt;P&gt;else&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If (PRIORITY=02 OR PRIORITY=12 OR PRIORITY=22 OR PRIORITY=25 AND Condition=Clear) then&amp;nbsp;&amp;lt;h3 style="color:green;"&amp;gt;A Cleared Alarm&amp;lt;/h3&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 03:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644862#M223307</guid>
      <dc:creator>mmwells</dc:creator>
      <dc:date>2023-05-30T03:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: If The Else Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644863#M223308</link>
      <description>&lt;P&gt;You can use a case function to evaluate the value of a field e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval alarm=case(PRIORITY=02 AND Condition="Alarm","Critical",PRIORITY=12 AND Condition="Alarm","High",PRIORITY=22 OR PRIORITY=25 AND Condition="Alarm","Low",PRIORITY=02 OR PRIORITY=12 OR PRIORITY=22 OR PRIORITY=25 AND Condition="Clear","Cleared")&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 28 May 2023 21:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644863#M223308</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-28T21:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: If The Else Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644944#M223348</link>
      <description>&lt;P&gt;That is a start, but I need to be able to change the font color when a condition is met.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 14:20:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-If-The-Else-Condition/m-p/644944#M223348</guid>
      <dc:creator>mmwells</dc:creator>
      <dc:date>2023-05-29T14:20:39Z</dc:date>
    </item>
  </channel>
</rss>

