<?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: dropdown Question. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64283#M3363</link>
    <description>&lt;P&gt;Thank You!!, But this would work only if I have a black row in my report, right?. I am looking for inserting a blank value default so that my fieldset will pick " * "(star) and would pass to default code in it. In such case,my search would pick all fields like "SUCCESS,FAILED,RUNNING,NA." possibilities.  Do you  think of any other options..&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2013 05:25:48 GMT</pubDate>
    <dc:creator>sschmd</dc:creator>
    <dc:date>2013-03-18T05:25:48Z</dc:date>
    <item>
      <title>dropdown Question.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64281#M3361</link>
      <description>&lt;P&gt;Dear Splunk Gurus,&lt;BR /&gt;
I'm new to splunk. Need some help  around Dropdown type for building an app.&lt;BR /&gt;
I tried as follows to create dropdown and is working.&lt;/P&gt;

&lt;P&gt;&lt;FIELDSET&gt;&lt;BR /&gt;
    &lt;INPUT type="dropdown" token="my_status" /&gt;&lt;BR /&gt;
      &lt;LABEL&gt;STATUS&lt;/LABEL&gt;&lt;BR /&gt;
      &lt;POPULATINGSEARCH fieldforvalue="status" fieldforlabel="status"&gt; &amp;lt;![CDATA[sourcetype=SQL_report&lt;BR /&gt;
       earliest=-1q|dedup status| stats count by status]]&amp;gt; &lt;/POPULATINGSEARCH&gt; &lt;BR /&gt;
      &lt;DEFAULT&gt;*&lt;/DEFAULT&gt;&lt;BR /&gt;
    &lt;BR /&gt;
  &lt;/FIELDSET&gt;&lt;/P&gt;

&lt;P&gt;My dropdown list pick up  all available status codes from sourcetype. the values are like SUCCESS,FAILED,RUNNING,NA.&lt;/P&gt;

&lt;P&gt;The Q, how do  I add a blank field so that the script pickup "&lt;EM&gt;",ie: &lt;DEFAULT&gt;&lt;/DEFAULT&gt;&lt;/EM&gt;&lt;DEFAULT&gt; in its fileds?&lt;/DEFAULT&gt;&lt;/P&gt;

&lt;P&gt;-chmd&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2013 05:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64281#M3361</guid>
      <dc:creator>sschmd</dc:creator>
      <dc:date>2013-03-17T05:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown Question.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64282#M3362</link>
      <description>&lt;P&gt;There is an option on the dedup command that handles null values called "keepempty" the default is set to false, so it removes the null or blank values. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Dedup"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Dedup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;sourcetype=SQL_report earliest=-1q|dedup status keepempty=true | stats count by status&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 01:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64282#M3362</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2013-03-18T01:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown Question.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64283#M3363</link>
      <description>&lt;P&gt;Thank You!!, But this would work only if I have a black row in my report, right?. I am looking for inserting a blank value default so that my fieldset will pick " * "(star) and would pass to default code in it. In such case,my search would pick all fields like "SUCCESS,FAILED,RUNNING,NA." possibilities.  Do you  think of any other options..&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 05:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64283#M3363</guid>
      <dc:creator>sschmd</dc:creator>
      <dc:date>2013-03-18T05:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown Question.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64284#M3364</link>
      <description>&lt;P&gt;Thank You!!, But this would work only if I have a black row in my report, right?. I am looking for inserting a blank value default so that my fieldset will pick " * "(star) and would pass to default code in it. In such case,my search would pick all fields like "SUCCESS,FAILED,RUNNING,NA." possibilities. Do you think of any other options..&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 05:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64284#M3364</guid>
      <dc:creator>sschmd</dc:creator>
      <dc:date>2013-03-18T05:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown Question.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64285#M3365</link>
      <description>&lt;P&gt;Ah. So am i correct in understanding that you want users to be able to select ALL?&lt;BR /&gt;
That would not be blank or null, which would be "no choice" but All choices, which would be the wildcard *&lt;/P&gt;

&lt;P&gt;Either way... above the default tag you can add a &lt;CHOICE&gt; tag as follows.&lt;/CHOICE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CHOICE value="*"&gt;ALL&lt;/CHOICE&gt;&lt;BR /&gt;
You can add any static values you like that way... &lt;/P&gt;

&lt;P&gt;May I suggest you install the following app?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/Splunk+Dashboard+Examples"&gt;http://splunk-base.splunk.com/apps/Splunk+Dashboard+Examples&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The example you were looking for in this case was the Dropdown example under Simple XML&lt;/P&gt;

&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 05:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64285#M3365</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2013-03-19T05:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown Question.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64286#M3366</link>
      <description>&lt;P&gt;Thank you, It helped.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 07:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-Question/m-p/64286#M3366</guid>
      <dc:creator>sschmd</dc:creator>
      <dc:date>2013-03-20T07:18:30Z</dc:date>
    </item>
  </channel>
</rss>

