<?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: creating the dropdown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98933#M5485</link>
    <description>&lt;P&gt;What is the $test$ for...did you replace that with $sources$ previously and it still isn't working?  Are you not getting any charts to populate?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2012 13:51:30 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2012-10-30T13:51:30Z</dc:date>
    <item>
      <title>creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98929#M5481</link>
      <description>&lt;P&gt;hi all ,&lt;/P&gt;

&lt;P&gt;i have the field called TaskAction it has upto some 25 fields i want to create dropdown fo those filed how can i do that&lt;/P&gt;

&lt;P&gt;pls help me with code&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98929#M5481</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-10-23T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98930#M5482</link>
      <description>&lt;P&gt;The UI examples app has info on how to do dropdowns.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2012 12:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98930#M5482</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-23T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98931#M5483</link>
      <description>&lt;P&gt;As Ayn said, download this app and you'll find examples with code for the dropdown you would like. Look in the folder ui_examples/default/data/ui/views/ &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41"&gt;http://splunk-base.splunk.com/apps/22333/splunk-ui-examples-app-for-41&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;form_dropdown.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
    &amp;lt;label&amp;gt;Simple select drop down&amp;lt;/label&amp;gt;

    &amp;lt;!-- define master search template, with replacement tokens delimited with $ --&amp;gt;
    &amp;lt;searchTemplate&amp;gt;index=_internal source=*metrics.log group="per_sourcetype_thruput" series=$series$ | fields eps, kb, kbps&amp;lt;/searchTemplate&amp;gt;
    &amp;lt;earliestTime&amp;gt;-30d&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;-0d&amp;lt;/latestTime&amp;gt;

    &amp;lt;fieldset&amp;gt;
        &amp;lt;!-- Define a simple dropdown form driven by a search --&amp;gt;
        &amp;lt;input type="dropdown" token="series"&amp;gt;
            &amp;lt;label&amp;gt;Select series&amp;lt;/label&amp;gt;
            &amp;lt;populatingSearch fieldForValue="series" fieldForLabel="series"&amp;gt;&amp;lt;![CDATA[index=_internal source=*metrics.log group="per_sourcetype_thruput" | top series]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
            &amp;lt;choice value="*"&amp;gt;Any&amp;lt;/choice&amp;gt;
        &amp;lt;/input&amp;gt;
    &amp;lt;/fieldset&amp;gt;

    &amp;lt;row&amp;gt;
        &amp;lt;!-- output the results as a 50 row events table --&amp;gt;
        &amp;lt;table&amp;gt;
            &amp;lt;title&amp;gt;Matching events&amp;lt;/title&amp;gt;
            &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;/table&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Oct 2012 13:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98931#M5483</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-10-23T13:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98932#M5484</link>
      <description>&lt;P&gt;Hi, i have tried with the above sample, but i am not getting the return value from the dropdown box in the variable and not able to do the search effectively.. here is my code. can u tell me what's wrong with my code. thanks for your valuable time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;MAPPING_drop down&amp;lt;/label&amp;gt;

   &amp;lt;fieldset&amp;gt;



  &amp;lt;input type="dropdown" token="sources"&amp;gt;
   &amp;lt;label&amp;gt;Source:&amp;lt;/label&amp;gt;
   &amp;lt;populatingSearch fieldForValue="source" fieldForLabel="source"&amp;gt;
      index=main sourcetype=pc_log |chart count over source
    &amp;lt;/populatingSearch&amp;gt;
&amp;lt;/input&amp;gt;

      &amp;lt;input type="time" /&amp;gt;
  &amp;lt;/fieldset&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
  &amp;lt;title&amp;gt;MAPPING:WRITER &amp;lt;/title&amp;gt;

      &amp;lt;searchTemplate&amp;gt;
    index=main source=$sources$ PC_level="WRITER_*"| chart count by PC_level
  &amp;lt;/searchTemplate&amp;gt;

      &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
      &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
      &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;


    &amp;lt;/chart&amp;gt; 
    &amp;lt;chart&amp;gt;
      &amp;lt;searchTemplate&amp;gt;
          index=main source=$test$ PC_level="LKPDP_*" OR PC_level="MAPPING" OR PC_level="TRANSF_*" | chart count by PC_level  &amp;lt;/searchTemplate&amp;gt;
      &amp;lt;title&amp;gt;MAPPING:TRANSFORMATION&amp;lt;/title&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
      &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
      &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;&amp;lt;row&amp;gt;
     &amp;lt;chart&amp;gt;
     &amp;lt;searchTemplate&amp;gt; 
       index=main source=$test$ eventtype="PC_READER" |chart count by PC_level   &amp;lt;/searchTemplate&amp;gt;
      &amp;lt;title&amp;gt;MAPPING:READER&amp;lt;/title&amp;gt;
      &amp;lt;earliestTime&amp;gt;0&amp;lt;/earliestTime&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
      &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
      &amp;lt;option name="displayRowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;

&amp;lt;/form&amp;gt;`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Oct 2012 12:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98932#M5484</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-10-30T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98933#M5485</link>
      <description>&lt;P&gt;What is the $test$ for...did you replace that with $sources$ previously and it still isn't working?  Are you not getting any charts to populate?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 13:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98933#M5485</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-10-30T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98934#M5486</link>
      <description>&lt;P&gt;The other thing i might do is simply the view and just get one chart working based on selecting a value from the drop down.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2012 14:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98934#M5486</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-10-30T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98935#M5487</link>
      <description>&lt;P&gt;Oh! i am sorry, i didn't change $test$ before posting, actually this form was working fine with a textbox and at that time i used token name as "test" for it. and when i tried to replace textbox with a dropdownbox i used another name for testing what's wrong with the name test, still first chart has to work. but it is not working.. even if i replace $test$ with $sources$ , nothing seems to be changed in my result. it is not generating any chart.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98935#M5487</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-10-31T07:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: creating the dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98936#M5488</link>
      <description>&lt;P&gt;the problem i found is , the value assigned to $source$ is like &lt;CODE&gt;C:\Users\homefolder\filename.txt&lt;/CODE&gt;&lt;BR /&gt;
which is the path of my source file but the one which is needed in the Splunk search command is something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\\Users\\homefolder\\filename.txt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So how to replace "&lt;CODE&gt;\&lt;/CODE&gt;" by "&lt;CODE&gt;\\&lt;/CODE&gt;"(double backslash) in search command &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; please help&lt;BR /&gt;
thankyou&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 07:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/creating-the-dropdown/m-p/98936#M5488</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-10-31T07:34:51Z</dc:date>
    </item>
  </channel>
</rss>

