<?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: How to include double quotes in Switch Case in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470836#M192190</link>
    <description>&lt;P&gt;Thank you. It works. &lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2019 16:19:12 GMT</pubDate>
    <dc:creator>Anantha123</dc:creator>
    <dc:date>2019-09-03T16:19:12Z</dc:date>
    <item>
      <title>How to include double quotes in Switch Case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470834#M192188</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;How can I do switch case for below  values &lt;BR /&gt;
{"XXX":["ABC"]}  == ABC&lt;BR /&gt;
{"XXX":[]}  ==  NULL . &lt;/P&gt;

&lt;P&gt;| eval Name=case(Name == "{"XXX":[]}", "NULL", Name == "{"XXX":["ABC"]}", "ABC" ) - This is not working.&lt;/P&gt;

&lt;P&gt;Thanks in Advance. &lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 16:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470834#M192188</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-09-03T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to include double quotes in Switch Case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470835#M192189</link>
      <description>&lt;P&gt;Splunk uses C-style escape sequences in strings. Escape the inner quotation marks with a backslash:&lt;/P&gt;

&lt;P&gt;| eval Name=case(Name == "{\"XXX\":[]}", "NULL", Name == "{\"XXX\":[\"ABC\"]}", "ABC" )&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 16:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470835#M192189</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2019-09-03T16:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to include double quotes in Switch Case</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470836#M192190</link>
      <description>&lt;P&gt;Thank you. It works. &lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 16:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-include-double-quotes-in-Switch-Case/m-p/470836#M192190</guid>
      <dc:creator>Anantha123</dc:creator>
      <dc:date>2019-09-03T16:19:12Z</dc:date>
    </item>
  </channel>
</rss>

