<?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: Using case in an eval statement, with values undefined in the case function displayed in stats table as well. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-case-in-an-eval-statement-with-values-undefined-in-the/m-p/486790#M136136</link>
    <description>&lt;P&gt;Add an entry in the &lt;CODE&gt;case&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;basesearch | eval number = case ( number = "1" , "Number 1" , number = "2" , "Number 2" , number = "3" , "Number 3" , number = "4" , "Number 4" , 1==1, "undefined") | stats count by number
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Nov 2019 16:34:23 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-11-19T16:34:23Z</dc:date>
    <item>
      <title>Using case in an eval statement, with values undefined in the case function displayed in stats table as well.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-case-in-an-eval-statement-with-values-undefined-in-the/m-p/486789#M136135</link>
      <description>&lt;P&gt;The command I am running is:&lt;/P&gt;

&lt;P&gt;basesearch | eval  number = case ( number = "1" , "Number 1" , number = "2" , "Number 2" , number = "3" , "Number 3" , number = "4" , "Number 4" ) | stats count by number&lt;/P&gt;

&lt;P&gt;But when I run this I also want to display the values that are undefined in the eval line. How would one go about this?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 15:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-case-in-an-eval-statement-with-values-undefined-in-the/m-p/486789#M136135</guid>
      <dc:creator>amcb90</dc:creator>
      <dc:date>2019-11-19T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using case in an eval statement, with values undefined in the case function displayed in stats table as well.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-case-in-an-eval-statement-with-values-undefined-in-the/m-p/486790#M136136</link>
      <description>&lt;P&gt;Add an entry in the &lt;CODE&gt;case&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;basesearch | eval number = case ( number = "1" , "Number 1" , number = "2" , "Number 2" , number = "3" , "Number 3" , number = "4" , "Number 4" , 1==1, "undefined") | stats count by number
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Nov 2019 16:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-case-in-an-eval-statement-with-values-undefined-in-the/m-p/486790#M136136</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-19T16:34:23Z</dc:date>
    </item>
  </channel>
</rss>

