<?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 Splunk if output reverse in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-if-output-reverse/m-p/573452#M199835</link>
    <description>&lt;P&gt;I am doing&amp;nbsp;eval response = if ("msg.RESPONSE"="200", "Success", "Fail" ), and I have all msg.RESPONSE as 200 but still i get Fail in output. As per splunk docs, value after condition should be returned if condition is true but it's reverse in my case. The logs are in JSON format like below&lt;/P&gt;&lt;P&gt;msg.RESPONSE : 200&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 08:27:46 GMT</pubDate>
    <dc:creator>ashutoshc21</dc:creator>
    <dc:date>2021-11-03T08:27:46Z</dc:date>
    <item>
      <title>Splunk if output reverse</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-if-output-reverse/m-p/573452#M199835</link>
      <description>&lt;P&gt;I am doing&amp;nbsp;eval response = if ("msg.RESPONSE"="200", "Success", "Fail" ), and I have all msg.RESPONSE as 200 but still i get Fail in output. As per splunk docs, value after condition should be returned if condition is true but it's reverse in my case. The logs are in JSON format like below&lt;/P&gt;&lt;P&gt;msg.RESPONSE : 200&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-if-output-reverse/m-p/573452#M199835</guid>
      <dc:creator>ashutoshc21</dc:creator>
      <dc:date>2021-11-03T08:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk if output reverse</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-if-output-reverse/m-p/573455#M199838</link>
      <description>&lt;P&gt;Use single quotes around the field name e.g. 'msg.RESPONSE' otherwise you are just comparing two static strings and they are not equal.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-if-output-reverse/m-p/573455#M199838</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-03T08:46:23Z</dc:date>
    </item>
  </channel>
</rss>

