<?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: is it possible to have expression in case command for argument Y? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683111#M233308</link>
    <description>&lt;P&gt;Thank you for reply. I did a simple test on simple text event data and |eval test=case(x=="X", a+b) does work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 23:03:44 GMT</pubDate>
    <dc:creator>billchen99k</dc:creator>
    <dc:date>2024-04-03T23:03:44Z</dc:date>
    <item>
      <title>is it possible to have expression in case command for argument Y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683077#M233300</link>
      <description>&lt;P&gt;is it possible to have expression in case command for argument Y?&lt;/P&gt;&lt;P&gt;case(x,y)&lt;/P&gt;&lt;P&gt;|eval test=case(x=="X", 'a+b')&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Y argument, instead of a strings or number, can it be an expression like field a + field b?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 17:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683077#M233300</guid>
      <dc:creator>billchen99k</dc:creator>
      <dc:date>2024-04-03T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to have expression in case command for argument Y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683084#M233301</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;Y&lt;/FONT&gt; argument can be anything valid for an &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; statement.&amp;nbsp; IOW, if&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval test=Y&lt;/LI-CODE&gt;&lt;P&gt;works then&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval test=case(X, Y)&lt;/LI-CODE&gt;&lt;P&gt;should also work.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 18:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683084#M233301</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-03T18:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to have expression in case command for argument Y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683111#M233308</link>
      <description>&lt;P&gt;Thank you for reply. I did a simple test on simple text event data and |eval test=case(x=="X", a+b) does work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 23:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683111#M233308</guid>
      <dc:creator>billchen99k</dc:creator>
      <dc:date>2024-04-03T23:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to have expression in case command for argument Y?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683115#M233312</link>
      <description>&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 00:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/is-it-possible-to-have-expression-in-case-command-for-argument-Y/m-p/683115#M233312</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-04-04T00:09:33Z</dc:date>
    </item>
  </channel>
</rss>

