<?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: Help with EVAL statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-EVAL-statement/m-p/58353#M14266</link>
    <description>&lt;P&gt;This will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | eval Severity_string = case(Severity == 1, "Low", Severity == 2, "Medium", Severity == 3, "High", Severity == 4, "Critical")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then just use Severity_string in table or whatever you use to display the results.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2012 14:43:12 GMT</pubDate>
    <dc:creator>bojanz</dc:creator>
    <dc:date>2012-01-26T14:43:12Z</dc:date>
    <item>
      <title>Help with EVAL statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-EVAL-statement/m-p/58352#M14265</link>
      <description>&lt;P&gt;I am extracting a field called "Severity" out of an XML data feed. and the values that are returned are severity 1, severity 2, severity 3, severity 4. I would like to re-assign the values to now say Low (instead of severity 1), Medium (instead of severity 2), High (instead of severity 3), Critical (instead of severity 4).&lt;/P&gt;

&lt;P&gt;I am certain than an EVAL statement would work here, but not sure what the syntax is.&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 14:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-EVAL-statement/m-p/58352#M14265</guid>
      <dc:creator>efelder0</dc:creator>
      <dc:date>2012-01-26T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with EVAL statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-EVAL-statement/m-p/58353#M14266</link>
      <description>&lt;P&gt;This will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | eval Severity_string = case(Severity == 1, "Low", Severity == 2, "Medium", Severity == 3, "High", Severity == 4, "Critical")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then just use Severity_string in table or whatever you use to display the results.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 14:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-EVAL-statement/m-p/58353#M14266</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-01-26T14:43:12Z</dc:date>
    </item>
  </channel>
</rss>

