<?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 limit to case function? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/limit-to-case-function/m-p/91133#M23448</link>
    <description>&lt;P&gt;Hi this is a simple case query I ran on splunk&lt;/P&gt;

&lt;P&gt;... | eval country=case(country="US","USA",country="CA","CA","rest")&lt;/P&gt;

&lt;P&gt;For some reason splunk doesn't like it, is it because there is a limit to the case?&lt;/P&gt;

&lt;P&gt;thanks for the help&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2012 07:36:32 GMT</pubDate>
    <dc:creator>Yarsa</dc:creator>
    <dc:date>2012-07-05T07:36:32Z</dc:date>
    <item>
      <title>limit to case function?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/limit-to-case-function/m-p/91133#M23448</link>
      <description>&lt;P&gt;Hi this is a simple case query I ran on splunk&lt;/P&gt;

&lt;P&gt;... | eval country=case(country="US","USA",country="CA","CA","rest")&lt;/P&gt;

&lt;P&gt;For some reason splunk doesn't like it, is it because there is a limit to the case?&lt;/P&gt;

&lt;P&gt;thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 07:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/limit-to-case-function/m-p/91133#M23448</guid>
      <dc:creator>Yarsa</dc:creator>
      <dc:date>2012-07-05T07:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: limit to case function?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/limit-to-case-function/m-p/91134#M23449</link>
      <description>&lt;P&gt;You're not specifying a condition for your last term, "rest". &lt;CODE&gt;case&lt;/CODE&gt; needs a boolean condition to be specified for each outcome it's supposed to act on. If you want a "default" kind of condition, you could specify something that you know always to be true (&lt;CODE&gt;1=1&lt;/CODE&gt; for instance) as the last term because &lt;CODE&gt;case&lt;/CODE&gt; will evaluate the statements sequentially.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval country=case(country="US","USA",country="CA","CA",1=1,"rest")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2012 08:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/limit-to-case-function/m-p/91134#M23449</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-05T08:09:42Z</dc:date>
    </item>
  </channel>
</rss>

