<?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 Splunk Drop Down Static Option issue in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395050#M41643</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a drop down that gives users to select operating system of choice for results. It has below fields and all are static with respective values.&lt;BR /&gt;
Static Options&lt;BR /&gt;
Name, Value&lt;BR /&gt;
Linux, Linux*&lt;BR /&gt;
Solaris, Solaris*&lt;BR /&gt;
Windows Server, Windows Server*&lt;BR /&gt;
Windows Misc, !=Windows Server* =Windows* (Issues lie here. How to do this for this Windows piece? To have multiple values in this section so it does the filter right). This is working perfectly fine in standalone searches etc. but I want this drop down to work fine with this selection. In this choice, I am skipping Windows Server but including all other Windows like Windows 7, 10 etc&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 10 May 2018 01:33:15 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2018-05-10T01:33:15Z</dc:date>
    <item>
      <title>Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395050#M41643</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a drop down that gives users to select operating system of choice for results. It has below fields and all are static with respective values.&lt;BR /&gt;
Static Options&lt;BR /&gt;
Name, Value&lt;BR /&gt;
Linux, Linux*&lt;BR /&gt;
Solaris, Solaris*&lt;BR /&gt;
Windows Server, Windows Server*&lt;BR /&gt;
Windows Misc, !=Windows Server* =Windows* (Issues lie here. How to do this for this Windows piece? To have multiple values in this section so it does the filter right). This is working perfectly fine in standalone searches etc. but I want this drop down to work fine with this selection. In this choice, I am skipping Windows Server but including all other Windows like Windows 7, 10 etc&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 01:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395050#M41643</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-05-10T01:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395051#M41644</link>
      <description>&lt;P&gt;@mbasharat, what is the field in your indexed data against which you want the above Dropdown value to match? What is your search SPL? Can you share the code for Simple XML Dashboard for Dropdown and its value being used in the search?&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 05:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395051#M41644</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-10T05:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395052#M41645</link>
      <description>&lt;P&gt;hi nikenilay,&lt;/P&gt;

&lt;P&gt;here it is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="os"&amp;gt;
  &amp;lt;label&amp;gt;Select Operating System&amp;lt;/label&amp;gt;
  &amp;lt;choice value="*Linux*"&amp;gt;Linux&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="Solaris*"&amp;gt;Solaris&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="Sun*"&amp;gt;SunOS&amp;lt;/choice&amp;gt;
  &amp;lt;choice value="Windows Server*"&amp;gt;Windows Server&amp;lt;/choice&amp;gt;
  **&amp;lt;choice value="=Windows* AND !=Windows Server*"&amp;gt;Windows Misc&amp;lt;/choice&amp;gt;**
  &amp;lt;default&amp;gt;*Linux*&amp;lt;/default&amp;gt;
  &amp;lt;initialValue&amp;gt;*Linux*&amp;lt;/initialValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query /&amp;gt;
  &amp;lt;/search&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 May 2018 15:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395052#M41645</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-05-10T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395053#M41646</link>
      <description>&lt;P&gt;@mbasharat also what is your SPL? What is the server field name in your indexed events where you want to apply &lt;CODE&gt;$os$&lt;/CODE&gt; filter?&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 16:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395053#M41646</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-10T16:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395054#M41647</link>
      <description>&lt;P&gt;You mean the Splunk version? It is 6.6.5 and 6.6.6 in two different enviros.&lt;BR /&gt;
The server fields name in indexed events is (os_name)&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 16:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395054#M41647</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-05-10T16:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395055#M41648</link>
      <description>&lt;P&gt;@mbasharat, Assuming the field in the indexed event is called &lt;CODE&gt;os&lt;/CODE&gt;, please try the following run anywhere example.&lt;BR /&gt;
You can code Dropdown &lt;CODE&gt;&amp;lt;change&amp;gt;&lt;/CODE&gt; handler to set the token as per your need. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dropdown Static Options&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="os" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Operating System&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Linux"&amp;gt;Linux&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Solaris"&amp;gt;Solaris&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Sun"&amp;gt;SunOS&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="WindowsServer"&amp;gt;Windows Server&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="WindowsMisc"&amp;gt;Windows Misc&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="Linux"&amp;gt;
          &amp;lt;set token="tokOS"&amp;gt;os="*Linux*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="Solaris"&amp;gt;
          &amp;lt;set token="tokOS"&amp;gt;os="Solaris*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="Sun"&amp;gt;
          &amp;lt;set token="tokOS"&amp;gt;os="Sun*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="WindowsServer"&amp;gt;
          &amp;lt;set token="tokOS"&amp;gt;os="Windows Server*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="WindowsMisc"&amp;gt;
          &amp;lt;set token="tokOS"&amp;gt;os="Windows*" AND os!="Windows Server*"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;default&amp;gt;Linux&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;Linux&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| fields - _time
| eval os="Red Had Linux X.Y.Z,Suse Linux X.Y.Z,SunOS X.Y.Z,Solaris X.Y.Z,Windows Server 2012,Windows Server 2013,Windows 7,Windows 10"
| makemv os delim=","
| mvexpand os
| search $tokOS$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Something similar can be directly done by moving values &lt;CODE&gt;&amp;lt;set&amp;gt;&lt;/CODE&gt; inside change event handler to be set directly as static value (however, this will appear as selected value for the dropdown). If you have Submit button in your dashboard and do not want Dropdown token to be set on changing the dropdown value, then you would need to assign the values directly under static option rather than change event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Dropdown Static Options Copy&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="os" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Operating System&amp;lt;/label&amp;gt;
      &amp;lt;choice value="os=&amp;amp;quot;*Linux*&amp;amp;quot;"&amp;gt;Linux&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="os=&amp;amp;quot;Solaris*&amp;amp;quot;"&amp;gt;Solaris&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="os=&amp;amp;quot;Sun*&amp;amp;quot;"&amp;gt;SunOS&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="os=&amp;amp;quot;Windows Server*&amp;amp;quot;"&amp;gt;Windows Server&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="os=&amp;amp;quot;Windows*&amp;amp;quot; AND os!=&amp;amp;quot;Windows Server*&amp;amp;quot;"&amp;gt;Windows Misc&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;os=&amp;amp;quot;*Linux*&amp;amp;quot;&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;os=&amp;amp;quot;*Linux*&amp;amp;quot;&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| fields - _time
| eval os="Red Had Linux X.Y.Z,Suse Linux X.Y.Z,SunOS X.Y.Z,Solaris X.Y.Z,Windows Server 2012,Windows Server 2013,Windows 7,Windows 10"
| makemv os delim=","
| mvexpand os
| search $os$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 16:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395055#M41648</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-10T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395056#M41649</link>
      <description>&lt;P&gt;WIth slight adjustment as per my need, first option worked. THANKS nikenilay!!!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 18:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/395056#M41649</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2018-05-10T18:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Drop Down Static Option issue</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/536593#M41650</link>
      <description>&lt;P&gt;I am trying to do the same and have an OR statement in my static options in a multiselect dropdown. when viewing in my search the OR is not showing as a delimiter. I have tried both with and without the delimiter command. Anyone have some advice?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="multiselect" token="Realm_Name" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Select Realm Name:&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;fieldForLabel&amp;gt;Realm Name&amp;lt;/fieldForLabel&amp;gt;&lt;BR /&gt;&amp;lt;fieldForValue&amp;gt;Realm Name&amp;lt;/fieldForValue&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index=twc_acme_pr_realm | dedup "Realm Name" | fields "Realm Name" | sort "Realm Name"&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;&lt;BR /&gt;&amp;lt;choice value="*"&amp;gt;*&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;choice value="*comcast*"&amp;gt;COMCAST&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;choice value="*impact*"&amp;gt;IMPACT&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;choice value="*iqnt* OR &amp;amp;quot;Realm Name&amp;amp;quot;=*nt-*"&amp;gt;IQ&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;change&amp;gt;&lt;BR /&gt;&amp;lt;condition value="IQ"&amp;gt;&lt;BR /&gt;&amp;lt;set token="tokRealm_Name"&amp;gt;"&amp;amp;quot;Realm Name&amp;amp;quot;=*iqnt* &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt; &amp;amp;quot;Realm Name"=&amp;amp;quot;*nt-*" &amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;/change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jkirstein_1-1611184645090.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12610i5A1D8FD8B4205D5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jkirstein_1-1611184645090.png" alt="jkirstein_1-1611184645090.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 23:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Drop-Down-Static-Option-issue/m-p/536593#M41650</guid>
      <dc:creator>jkirstein</dc:creator>
      <dc:date>2021-01-20T23:19:19Z</dc:date>
    </item>
  </channel>
</rss>

