<?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 Eval commands in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332552#M98931</link>
    <description>&lt;P&gt;Does anyone know if you do a rex and create a new field could you use that field for the eval commands?&lt;/P&gt;

&lt;P&gt;IE:&lt;BR /&gt;
| rex field=_raw "ACTION:\s(?.*) RETURNCODE"&lt;BR /&gt;
| eval desc = case (action = "100", "Successfully Deleted")&lt;BR /&gt;
| table user host action desc&lt;/P&gt;

&lt;P&gt;Anyone know??&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 19:35:33 GMT</pubDate>
    <dc:creator>HealyManTech</dc:creator>
    <dc:date>2018-04-11T19:35:33Z</dc:date>
    <item>
      <title>Eval commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332552#M98931</link>
      <description>&lt;P&gt;Does anyone know if you do a rex and create a new field could you use that field for the eval commands?&lt;/P&gt;

&lt;P&gt;IE:&lt;BR /&gt;
| rex field=_raw "ACTION:\s(?.*) RETURNCODE"&lt;BR /&gt;
| eval desc = case (action = "100", "Successfully Deleted")&lt;BR /&gt;
| table user host action desc&lt;/P&gt;

&lt;P&gt;Anyone know??&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 19:35:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332552#M98931</guid>
      <dc:creator>HealyManTech</dc:creator>
      <dc:date>2018-04-11T19:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Eval commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332553#M98932</link>
      <description>&lt;P&gt;You definitely can. If the rex command is working correctly the field qould be created and be available to any subsequent command.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 19:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332553#M98932</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-11T19:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Eval commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332554#M98933</link>
      <description>&lt;P&gt;yes we can... once you have  extracted the field you can impose any function on top of that.. &lt;/P&gt;

&lt;P&gt;index=test_core   source=&lt;EM&gt;abc&lt;/EM&gt;  &lt;EM&gt;ctx&lt;/EM&gt; "1015" "SNB" "USA"  | rex field=_raw "ctx+]=[(?P\d+)" | dedup ctxx&lt;BR /&gt;
| eval desc = case (ctxx = "80000000", "Successfully Deleted")&lt;BR /&gt;
| table sourcetype host ctxx desc&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332554#M98933</guid>
      <dc:creator>prabhu77749</dc:creator>
      <dc:date>2020-09-29T19:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Eval commands</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332555#M98934</link>
      <description>&lt;P&gt;That works. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 10:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Eval-commands/m-p/332555#M98934</guid>
      <dc:creator>HealyManTech</dc:creator>
      <dc:date>2018-04-12T10:52:28Z</dc:date>
    </item>
  </channel>
</rss>

