<?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 statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79022#M19990</link>
    <description>&lt;P&gt;Thanks, this works now ,but if i select pie graph i am getting extra field other (1), do you have any idea why its coming only on pie graph ?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2013 07:03:52 GMT</pubDate>
    <dc:creator>vaibhavbeohar</dc:creator>
    <dc:date>2013-03-29T07:03:52Z</dc:date>
    <item>
      <title>If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79020#M19988</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I am running search to get rating status in my report, not getting any result and getting error &lt;BR /&gt;
&lt;STRONG&gt;" Error in 'eval' command: The expression is malformed. Expected )&lt;/STRONG&gt; " here is my search,&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;"sourcetype="TicketAnalysis" | eval XYZ = if (Rating1 &amp;gt;="6", "Satisfied", if (Rating1 &amp;lt;="6" AND Rating1 &amp;gt;= "4" "Neutral", if (Rating1 &amp;lt; "4" AND Rating1 &amp;gt;= 1, "Dissatisfied","Unrated"))) "&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 06:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79020#M19988</guid>
      <dc:creator>vaibhavbeohar</dc:creator>
      <dc:date>2013-03-29T06:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79021#M19989</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype="TicketAnalysis" | eval XYZ = if (Rating1 &amp;gt;="6", "Satisfied", if (Rating1 &amp;lt;="6" AND Rating1 &amp;gt;= "4" **,** "Neutral", if (Rating1 &amp;lt; "4" AND Rating1 &amp;gt;= 1, "Dissatisfied","Unrated")))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i think you missed a comma in second if statement . if (Rating1 &amp;lt;="6" AND Rating1 &amp;gt;= "4" &lt;STRONG&gt;,&lt;/STRONG&gt; "Neutral"&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 06:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79021#M19989</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-03-29T06:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79022#M19990</link>
      <description>&lt;P&gt;Thanks, this works now ,but if i select pie graph i am getting extra field other (1), do you have any idea why its coming only on pie graph ?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 07:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79022#M19990</guid>
      <dc:creator>vaibhavbeohar</dc:creator>
      <dc:date>2013-03-29T07:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79023#M19991</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  you have an option to remove other from pie graph in a dashboard . append this &lt;BR /&gt;
0&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/57124/other-values-in-pie-chart"&gt;this&lt;/A&gt;answer may help you;;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 07:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79023#M19991</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2013-03-29T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79024#M19992</link>
      <description>&lt;P&gt;Is there any particular reason you wouldn't use &lt;EM&gt;case&lt;/EM&gt; instead?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 21:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79024#M19992</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2013-03-29T21:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79025#M19993</link>
      <description>&lt;P&gt;eval Comment=if((Fund_Credit_Amt=Ack_Credit_Amt) AND (Fund_Debit_Amt=Ack_Debit_Amt) ,"MATCH","MISMATCH")&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-statement/m-p/79025#M19993</guid>
      <dc:creator>jbanerje</dc:creator>
      <dc:date>2020-09-29T06:53:30Z</dc:date>
    </item>
  </channel>
</rss>

