<?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: How to Write Case/If Statement for Certain vs All (*) Values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505190#M141173</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205010"&gt;@Richfez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. I did not know about the true() function. Learned something new.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, results still ending up with '100'.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 13:22:32 GMT</pubDate>
    <dc:creator>genesiusj</dc:creator>
    <dc:date>2020-06-19T13:22:32Z</dc:date>
    <item>
      <title>How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505171#M141164</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is a difficult one to explain. Best to show the code and the intended outcomes. Note, there are 7+ possible values, but I will use only 2 for clarity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mf SYSNAME=mf MFSOURCETYPE=SMF110 TRAN !="C*" OAPPLID=* 
| eval TransactionSpeed=(SUSPTIME_MICROSEC + USRCPUT_MICROSEC) 
| eval avgTransactionSpeedSec=round(avgTransactionSpeed/1000000,5) 
| eval OAPPLID=if( like(OAPPLID,"CI0%"),OAPPLID,"ALL") 
| eval upper_limit=case(OAPPLID="CI04JPAD",.1,OAPPLID="CI04JPAF",.2,OAPPLID="ALL",1.5) 
| eval lower_limit1=upper_limit/3 
| eval lower_limit2=(upper_limit/3)*2 
| stats avg(TransactionSpeed) AS avgTransactionSpeed, values(upper_limit) AS upper_limit, values(lower_limit1) AS lower_limit1, values(lower_limit2) AS lower_limit2 
| gauge avgTransactionSpeedSec 0 lower_limit1 lower_limit2 upper_limit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;When &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt; is a single value ("&lt;STRONG&gt;CI04JPAD&lt;/STRONG&gt;" or "&lt;STRONG&gt;CI04JPAF&lt;/STRONG&gt;") the &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; is set to&lt;STRONG&gt; .1&lt;/STRONG&gt; or &lt;STRONG&gt;.2&lt;/STRONG&gt; respectively.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot - 6_19_2020 , 8_01_53 AM.png" style="width: 122px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9251iA3CBD7A76CA03D25/image-dimensions/122x116?v=v2" width="122" height="116" role="button" title="Screenshot - 6_19_2020 , 8_01_53 AM.png" alt="Screenshot - 6_19_2020 , 8_01_53 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot - 6_19_2020 , 8_04_02 AM.png" style="width: 123px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9252iDF383CB00BB9AE32/image-dimensions/123x117?v=v2" width="123" height="117" role="button" title="Screenshot - 6_19_2020 , 8_04_02 AM.png" alt="Screenshot - 6_19_2020 , 8_04_02 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When&amp;nbsp;&lt;STRONG&gt;OAPPLID&lt;/STRONG&gt; is set to &lt;STRONG&gt;*&lt;/STRONG&gt;&amp;nbsp;(all possible values) the &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; should be set to &lt;STRONG&gt;1.5&lt;/STRONG&gt;. instead, &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; is set to 100.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot - 6_19_2020 , 8_00_09 AM.png" style="width: 122px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9250i4AE0705D161F9FC7/image-dimensions/122x117?v=v2" width="122" height="117" role="button" title="Screenshot - 6_19_2020 , 8_00_09 AM.png" alt="Screenshot - 6_19_2020 , 8_00_09 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Stay safe and healthy you and yours.&lt;/P&gt;&lt;P&gt;God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 12:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505171#M141164</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-06-19T12:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505185#M141170</link>
      <description>&lt;P&gt;I am not sure where the `100` is coming from, but normally I include a fall-through statement in case statements, that will always be true and relies on no condition.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; eval upper_limit=case(OAPPLID="CI04JPAD",.1,OAPPLID="CI04JPAF",.2,true(),1.5) &lt;/LI-CODE&gt;&lt;P&gt;Give that `true()` a try!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 13:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505185#M141170</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-06-19T13:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505190#M141173</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205010"&gt;@Richfez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. I did not know about the true() function. Learned something new.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, results still ending up with '100'.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 13:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505190#M141173</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-06-19T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505218#M141178</link>
      <description>&lt;P&gt;Intriguing.&amp;nbsp; There's nowhere a '100' could sneak in at.&lt;/P&gt;&lt;P&gt;What do you get when you do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mf SYSNAME=mf MFSOURCETYPE=SMF110 TRAN !="C*" OAPPLID=* 
| eval TransactionSpeed=(SUSPTIME_MICROSEC + USRCPUT_MICROSEC) 
| eval avgTransactionSpeedSec=round(avgTransactionSpeed/1000000,5) 
| eval OAPPLID=if( like(OAPPLID,"CI0%"),OAPPLID,"ALL") 
| eval upper_limit=case(OAPPLID="CI04JPAD",.1,OAPPLID="CI04JPAF",.2,OAPPLID="ALL",1.5) 
| where upper_limit&amp;gt;2
| table upper_limit, OAPPLID&lt;/LI-CODE&gt;&lt;P&gt;What is the value of OAPPLID where upper_limit ends up being 100?&amp;nbsp; (I filter to where it's &amp;gt;2, since all values should be between 0.1 and 1.5).&lt;/P&gt;&lt;P&gt;Also just to confirm, you could change ".1" to "0.1", and you could even put that in quotes and see if the behavior changes.&lt;/P&gt;&lt;P&gt;Let me know what you find!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 16:15:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505218#M141178</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-06-19T16:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505248#M141181</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205010"&gt;@Richfez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| where upper_limit&amp;gt;2&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;No results.&lt;/P&gt;&lt;P&gt;I removed the above command, with these results.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot - 6_19_2020 , 2_33_15 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9259iC509F5A3128BFBE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot - 6_19_2020 , 2_33_15 PM.png" alt="Screenshot - 6_19_2020 , 2_33_15 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;OAPPLID is never set to "ALL".&lt;/P&gt;&lt;P&gt;Thanks and God bless,&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 18:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505248#M141181</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-06-19T18:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505256#M141183</link>
      <description>&lt;P&gt;I think I might need to provide more context.&lt;/P&gt;&lt;P&gt;In the search, there are 8 possible values for &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt;,&amp;nbsp;selected from a drop-down input on the dashboard.&lt;/P&gt;&lt;P&gt;CI04JPAD&lt;BR /&gt;CI04JPAF&lt;BR /&gt;CI004JMS&lt;BR /&gt;&lt;SPAN&gt;CI004MAL&lt;BR /&gt;CI04JPDG&lt;BR /&gt;CI00400Z&lt;BR /&gt;CI04JPTE&lt;BR /&gt;&lt;/SPAN&gt;*&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;*&lt;/STRONG&gt; is selected on the drop-down this means &lt;EM&gt;&lt;STRONG&gt;any&lt;/STRONG&gt; &lt;/EM&gt;combination of &lt;U&gt;one or more&lt;/U&gt; of those 7 values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search code&amp;gt;
| eval upper_limit=case(OAPPLID="CI04JPAD",.1,OAPPLID="CI04JPAF",.2,OAPPLID="CI004JMS",.3,OAPPLID="CI004MAL",.4,OAPPLID="CI04JPDG",.5,OAPPLID="CI00400Z",.6,OAPPLID="CI04JPTE",.7) 
| eval lower_limit1=upper_limit/3 
| eval lower_limit2=(upper_limit/3)*2 
| stats avg(TransactionSpeed) AS avgTransactionSpeed, values(upper_limit) AS upper_limit, values(lower_limit1) AS lower_limit1, values(lower_limit2) AS lower_limit2 
| gauge avgTransactionSpeedSec 0 lower_limit1 lower_limit2 upper_limit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If * is selected, and there is only one value for OAPPLID at that time, for example, &lt;EM&gt;CI04JPAF&lt;/EM&gt;, &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; should be set to &lt;STRONG&gt;1.5&lt;/STRONG&gt; and not &lt;STRONG&gt;.2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I hope this is clearer. I'm still struggling with putting the idea into words.&lt;/P&gt;&lt;P&gt;What does * represent to Splunk? Is there a length associated with *?&lt;BR /&gt;I tried adding a &lt;STRONG&gt;(len(OAPPLID)=1),1.5&lt;/STRONG&gt; to the beginning of the if clause, but didn't work either.&lt;/P&gt;&lt;P&gt;I'm thinking I may need to use &amp;lt;set&amp;gt; and &amp;lt;unset&amp;gt; of the upper_limit in the dashboard for each possible OAPPLID. I would prefer to have the SPL handle rather than the XML.&lt;/P&gt;&lt;P&gt;I hope this didn't confuse matters more. I appreciate everyone's input thus far.&lt;/P&gt;&lt;P&gt;Thanks and God bless.&lt;BR /&gt;Genesius&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 19:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505256#M141183</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-06-19T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505284#M141190</link>
      <description>&lt;P&gt;Well, ... Maybe that helped?&amp;nbsp; It brings up a couple of questions.&amp;nbsp; Or at least a long string of words from me, hopefully some of these are correct but maybe many aren't - you'll be able to read through it and tell, I hope and correct the wrong ones?&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, let's step back just a bit, make sure we understand what's going on and what's desired.&amp;nbsp; (Also, sing the rubber ducky song from Sesame Street at this point, because I'm rubber ducking you.&amp;nbsp; Or myself.&amp;nbsp; Something.)&lt;/P&gt;&lt;P&gt;The dropdown you have, is it a multi-select or just a regular drop down (e.g. can they pick only one item, or can they pick many?)&amp;nbsp; What is the name of the drop-down (meaning, if you want to address it in the SPL what would I use there?&amp;nbsp; I'll assume $OAPPLID$ for the moment)&lt;/P&gt;&lt;P&gt;And what is the purpose of that dropdown?&amp;nbsp; I hope it is to *filter* the returned events.&amp;nbsp; In which case you'll have as part of your search "OAPPLID=$OAPPLID$", right?&amp;nbsp; (I always tag a "_tok" after those just to make it extra clear it's coming from the tokens set by the input, OAPPLID=$OAPPLID_tok$, but no worries either works).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now you've filtered the events somewhat, maybe to OAPPLID=&amp;lt;some value&amp;gt; but maybe to OAPPLID=*.&lt;/P&gt;&lt;P&gt;And if I correctly interpret what you are saying, you then have some "upper_limit" you'd like to create, that's based on a value derived from what's matched?&amp;nbsp; Is that from the events (OAPPLID - my assumption) or from the dropdown ($OAPPLID$)?&lt;/P&gt;&lt;P&gt;Well, in either of those cases, if OAPPLID (of either type) was ONE of the possible values, you want upper_limit to be a particular value &amp;lt; 1 or so. If OAPPLID is of several values, you want it to be set to 1.5.&lt;/P&gt;&lt;P&gt;This is really convoluted.&amp;nbsp; Or at least it feels that way, and I'd love to actually learn the rationale behind this because maybe there's a completely different way to handle this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, no worries!&amp;nbsp; Onwards we go, blindly throwing spaghetti on the wall and hoping it sticks!&lt;/P&gt;&lt;P&gt;One thing to mention is that there IS such a thing as "mvcount", like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval n=mvcount(OAPPLID) | eval upper_limit = case(n&amp;gt;1, 1.5, OAPPLID="foo", 0.1, OAPPLID="bar", 0.2, ...)&lt;/LI-CODE&gt;&lt;P&gt;If there's more than one value of OAPPLID, you should in that case pick up upper_limit of 1.5, otherwise it launches into the other pile of individual matches.&lt;/P&gt;&lt;P&gt;And, maybe that's your solution.&lt;/P&gt;&lt;P&gt;I seem to have run out of words.&amp;nbsp; That was a pile of conjecture and squiggly-brow thinking, so two things to check into:&lt;/P&gt;&lt;P&gt;a) Make sure you are using the right form (OAPPLID vs. $OAPPLID$) depending on which thing you are trying to reference.&lt;/P&gt;&lt;P&gt;b) Maybe break this down and get it working for a trivial version, then add to it.&lt;/P&gt;&lt;P&gt;c) check into the mvcount method&lt;/P&gt;&lt;P&gt;d) correct anything in the above that's wrong!&lt;/P&gt;&lt;P&gt;D is the second letter of the alphabet, right?&amp;nbsp; Close enough for me!&lt;/P&gt;&lt;P&gt;Happy splunking, and let us know ... what you find out!&lt;/P&gt;&lt;P&gt;-Rich&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 21:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505284#M141190</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2020-06-19T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Write Case/If Statement for Certain vs All (*) Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505344#M141215</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205010"&gt;@Richfez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Rich.&lt;/P&gt;&lt;P&gt;To bring up another Sesame Street song, &lt;span class="lia-unicode-emoji" title=":musical_score:"&gt;🎼&lt;/span&gt; "&lt;EM&gt;Sunny days. Chasing the clouds away,...."&lt;/EM&gt;. So I don't want to spend too much time indoors this weekend.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The dashboard panel code is from &lt;A href="https://www.syncsort.com/en/products/ironstream" target="_blank" rel="noopener"&gt;Syncsort's IronStream app for Splunk&lt;/A&gt;. We are tweaking copies of the &lt;STRONG&gt;CISC&lt;/STRONG&gt; dashboard for specific &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt;s, as well as other fields IronStream provides.&amp;nbsp;&lt;STRONG&gt;OAPPLID&lt;/STRONG&gt; is a &lt;U&gt;text&lt;/U&gt; token, &lt;STRONG&gt;$regionFilter$&lt;/STRONG&gt;, we are converting to a &lt;U&gt;drop-down&lt;/U&gt; token, with the same name, to provide better reporting.&lt;/P&gt;&lt;P&gt;Here is the&amp;nbsp;original XML code for the IronStream panel.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Average Transaction Response Time (secs)&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=$index$ SYSNAME=DOL1 MFSOURCETYPE=SMF110 TRAN !="C*" OAPPLID=$regionFilter$|eval TransactionSpeed=(SUSPTIME_MICROSEC + USRCPUT_MICROSEC) | stats avg(TransactionSpeed) as avgTransactionSpeed|eval avgTransactionSpeedSec=round(avgTransactionSpeed/1000000,5) | gauge avgTransactionSpeedSec  0 .003 .006 .0065 .007 .0075 .008 .0085&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$gaugeStartTime$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$gaugeEndTime$&amp;lt;/latest&amp;gt;
          &amp;lt;refresh&amp;gt;$autoRefresh$&amp;lt;/refresh&amp;gt;
          &amp;lt;refreshType&amp;gt;delay&amp;lt;/refreshType&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;radialGauge&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;minimal&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.gaugeColors"&amp;gt;[0xBF3030,0xFFE800,0x84E900]&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;The &lt;STRONG&gt;gauge&lt;/STRONG&gt; command is using hardcoded figures for different values. We need to make this dynamic, based on the value of the &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt;.&lt;BR /&gt;If I may, let's step back a bit.&amp;nbsp;The &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; values chosen here are strictly for a &lt;EM&gt;proof of concept&lt;/EM&gt;. I chose the .1 - .7 values as a &lt;EM&gt;quick visual&lt;/EM&gt; to show the SPL is working. In reality, some of the &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; values might be the same. The &lt;STRONG&gt;upper_limit&lt;/STRONG&gt; might be less than all the others as it is an average of all the &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt;s combined.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt; the above answered &lt;EM&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Onward and up/downward to &lt;EM&gt;&lt;STRONG&gt;B&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;By "trivial version"&amp;nbsp;I&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&amp;nbsp;you mean less values of &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt;? If so, I was doing that in my original posting. But because the other possible values of &lt;STRONG&gt;OAPPLID&lt;/STRONG&gt; are still, well, possible, I thought that might be the culprit.?!&lt;/P&gt;&lt;P&gt;I think I just confused myself.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See. I mean &lt;EM&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Learned another new clause, without losing my sanity. Get it sanity, clau... Never mind. I'm losing my mine.&lt;/P&gt;&lt;P&gt;I would have loved &lt;STRONG&gt;mvcount&lt;/STRONG&gt; to work. But alas. Nope.&lt;/P&gt;&lt;P&gt;Now onto my own&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Whatever solution I find here can/will be used with future clients and projects. Nothing ever goes to waste. Everything is recycled.&lt;/P&gt;&lt;P&gt;Thanks again for your help and our banter. Feels refreshing in this time of uncertainty.&lt;/P&gt;&lt;P&gt;Stay safe and healthy, you and yours.&lt;/P&gt;&lt;P&gt;God bless,&lt;BR /&gt;Genesius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jun 2020 16:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Write-Case-If-Statement-for-Certain-vs-All-Values/m-p/505344#M141215</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-06-20T16:40:39Z</dc:date>
    </item>
  </channel>
</rss>

