<?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 Creating An If Statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79822#M20185</link>
    <description>&lt;P&gt;I am trying to create an if statement that if source="fschangemonitor" then it will turn from green to red.   Any ideas &lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2011 14:14:42 GMT</pubDate>
    <dc:creator>itsomana</dc:creator>
    <dc:date>2011-09-22T14:14:42Z</dc:date>
    <item>
      <title>Creating An If Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79822#M20185</link>
      <description>&lt;P&gt;I am trying to create an if statement that if source="fschangemonitor" then it will turn from green to red.   Any ideas &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79822#M20185</guid>
      <dc:creator>itsomana</dc:creator>
      <dc:date>2011-09-22T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating An If Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79823#M20186</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;**search** | eval level = case(source=="fschangemonitor",2) | rangemap field=level low=0-1 severe=2-100 default=severe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Something like that?&lt;BR /&gt;
I just copied and pasted a search I use to detect Up/Down hosts and to display the status of Up or Down in a coloured box thats red or green dependent on its state.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79823#M20186</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-09-22T14:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating An If Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79824#M20187</link>
      <description>&lt;P&gt;Please give more details. What should turn from green to red? How does your search look right now? Are you familiar with eval's if function?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2011 14:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-An-If-Statement/m-p/79824#M20187</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-09-22T14:34:38Z</dc:date>
    </item>
  </channel>
</rss>

