<?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: Multiple case statement is not working? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-case-statement-is-not-working/m-p/682256#M11416</link>
    <description>&lt;P&gt;There doesn't appear to be anything wrong with case statement on its own. However, there are other statements which might affect your result, e.g. dedup. Please can you share some events demonstrating your issue?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 10:26:07 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-03-28T10:26:07Z</dc:date>
    <item>
      <title>Multiple case statement is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-case-statement-is-not-working/m-p/682253#M11415</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am using multiple keywords to get count of errors from different message.So i am trying case statement to acheive it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="mulesoft" applicationName="api" environment="*" (message="Concur Ondemand Started") OR (message="API: START: /v1/fin_Concur") OR (message="*(ERROR): concur  import failed for file*") OR (tracePoint="EXCEPTION") 
| dedup correlationId 
| eval JobName=case(like('message',"Concur Ondemand Started") OR like('message',"API: START: /v1/fin_Concur%") AND like('tracePoint',"EXCEPTION"),"EXPENSE JOB",like('message',"%(ERROR): concur  import failed for file%"),"ACCURAL JOB") 
| stats count by JobName&lt;/LI-CODE&gt;&lt;P&gt;But i am getting only EXPENSE JOB JobName.But when i split into two query both JobName having result .&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 09:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-case-statement-is-not-working/m-p/682253#M11415</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-03-28T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple case statement is not working?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multiple-case-statement-is-not-working/m-p/682256#M11416</link>
      <description>&lt;P&gt;There doesn't appear to be anything wrong with case statement on its own. However, there are other statements which might affect your result, e.g. dedup. Please can you share some events demonstrating your issue?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multiple-case-statement-is-not-working/m-p/682256#M11416</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-28T10:26:07Z</dc:date>
    </item>
  </channel>
</rss>

