<?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: Number of Conditions in case() Statement in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751825#M242560</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/312445"&gt;@wkim20&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If none of the conditions in a Splunk case() statement are met, it will return the value specified for the default condition.&lt;BR /&gt;Can you share your query here, so that we can have a look.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2025 04:36:18 GMT</pubDate>
    <dc:creator>PrewinThomas</dc:creator>
    <dc:date>2025-08-19T04:36:18Z</dc:date>
    <item>
      <title>Number of Conditions in case() Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/546094#M154781</link>
      <description>&lt;P&gt;Is there a limit to the number of conditions we can use in a case() statement?&lt;/P&gt;&lt;P&gt;I've reached a point where my ORs and ANDs are no longer being highlighted syntactically and neither are my parenthesis being highlighted with their corresponding opening/closing counterpart when I move the cursor one space beyond one.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 22:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/546094#M154781</guid>
      <dc:creator>michaelsplunk1</dc:creator>
      <dc:date>2021-03-30T22:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Conditions in case() Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751802#M242552</link>
      <description>&lt;P&gt;I too have this same issue, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149"&gt;@splunk&lt;/a&gt;&amp;nbsp;/ splunk team any response to this?&amp;nbsp; i am having the issue to the point where my conditions are not being met and it defaults to another value defined in the case statement condition but the field it is looking does not have the matching value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 14:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751802#M242552</guid>
      <dc:creator>wkim20</dc:creator>
      <dc:date>2025-08-18T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Conditions in case() Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751825#M242560</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/312445"&gt;@wkim20&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If none of the conditions in a Splunk case() statement are met, it will return the value specified for the default condition.&lt;BR /&gt;Can you share your query here, so that we can have a look.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 04:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751825#M242560</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-08-19T04:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Conditions in case() Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751831#M242561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/70257"&gt;@michaelsplunk1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;for my knowledge, there isn't any limit to the conditions in a case statement, but there'a limit to the lenght of a search caused not by Splunk (that has no limits) but by the browser.&lt;/P&gt;&lt;P&gt;In this case you can create your search outside Splunk, save it as a savedsearch and execute it using a command like&amp;nbsp;&lt;SPAN&gt;| savedsearch yoursavedsearchname or using a macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;About highlighting, be sure that there isn't any error in parenthesis and quotes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 06:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751831#M242561</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-08-19T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Number of Conditions in case() Statement</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751864#M242564</link>
      <description>&lt;P&gt;only thing i did was to make sure the spaces were available in the query which were updated in the calc metrics.&amp;nbsp; Its just odd this had to be done this way...syntactically it was not wrong nor did Splunk flag as an error when running the query.&amp;nbsp; just odd overall on behavior of this tool and a bit mindful going forward&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 14:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Number-of-Conditions-in-case-Statement/m-p/751864#M242564</guid>
      <dc:creator>wkim20</dc:creator>
      <dc:date>2025-08-19T14:31:01Z</dc:date>
    </item>
  </channel>
</rss>

