<?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: eval command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601930#M209502</link>
    <description>&lt;P&gt;Use the case command, like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval comments= case(Action="create","something has been created", Action="delete","something  has been deleted", true(),'comments')&lt;/LI-CODE&gt;&lt;P&gt;The option "true()" is for default option (when all preceding conditions do not match).&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 15:16:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2022-06-15T15:16:06Z</dc:date>
    <item>
      <title>help with eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601919#M209495</link>
      <description>&lt;P&gt;Hi everyone, i want to use the below command in a single line. i have tried "comma" but it's not working.&lt;BR /&gt;&lt;BR /&gt;How do i do it?&lt;BR /&gt;&lt;BR /&gt;|eval comments= if(Action="create","something has been created",'comments')&lt;BR /&gt;|eval comments= if(Action="delete","something&amp;nbsp; has been deleted",'comments')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601919#M209495</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-06-15T19:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601922#M209497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;use two concatenated ifs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval comments= if(Action="create","something has been created", if(Action="delete","something  has been deleted",'comments')&lt;/LI-CODE&gt;&lt;P&gt;or case with the same logic&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601922#M209497</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601923#M209498</link>
      <description>&lt;P&gt;There is a closing bracket " ) " missing in the SPL.&lt;BR /&gt;is it supposed to be that way ?&amp;nbsp;&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 14:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601923#M209498</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-06-15T14:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601930#M209502</link>
      <description>&lt;P&gt;Use the case command, like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|eval comments= case(Action="create","something has been created", Action="delete","something  has been deleted", true(),'comments')&lt;/LI-CODE&gt;&lt;P&gt;The option "true()" is for default option (when all preceding conditions do not match).&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601930#M209502</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-06-15T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601933#M209505</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244498"&gt;@super_saiyan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes sorry!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval comments= if(Action="create","something has been created", if(Action="delete","something  has been deleted",'comments'))&lt;/LI-CODE&gt;&lt;P&gt;does it run and solves your need?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:22:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601933#M209505</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-15T15:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601943#M209506</link>
      <description>&lt;P&gt;Yes, It ran and solved my issue. Thank you so much as always.&lt;BR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:14:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-eval-command/m-p/601943#M209506</guid>
      <dc:creator>super_saiyan</dc:creator>
      <dc:date>2022-06-15T16:14:24Z</dc:date>
    </item>
  </channel>
</rss>

