<?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 not working in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54282#M2854</link>
    <description>&lt;P&gt;hi smolcj,&lt;/P&gt;

&lt;P&gt;ii tried with the sample codeyou had given ..but still i am getting the error as below&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/sour.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Dec 2012 09:32:37 GMT</pubDate>
    <dc:creator>splunkpoornima</dc:creator>
    <dc:date>2012-12-05T09:32:37Z</dc:date>
    <item>
      <title>dropdown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54280#M2852</link>
      <description>&lt;P&gt;hi &lt;/P&gt;

&lt;P&gt;using the below code i created three dropdowns if i select the index name in first dropdown it shows the sourcetypes in that index in the second dropdown .&lt;/P&gt;

&lt;P&gt;upto this its working fine:)&lt;/P&gt;

&lt;P&gt;my problem is if i select the sourcetype in that second dropdown i want to list of the sources  for the sourcetype i have selected in the second dropdown ..but it shows all sources &lt;/P&gt;

&lt;P&gt;this is codei used&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="SearchSelectLister" layoutPanel="panel_row3_col1" group="Drilldowns - 3"&amp;gt;
  &amp;lt;param name="label"&amp;gt;which index&amp;lt;/param&amp;gt;
  &amp;lt;param name="settingToCreate"&amp;gt;index_setting&amp;lt;/param&amp;gt;
  &amp;lt;param name="search"&amp;gt;| eventcount summarize=false index=* | search index!="splunklogger" index!="summary" index!="history" | sort -index&amp;lt;/param&amp;gt;
  &amp;lt;param name="searchWhenChanged"&amp;gt;True&amp;lt;/param&amp;gt;
  &amp;lt;param name="selected"&amp;gt;main&amp;lt;/param&amp;gt;
  &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
    &amp;lt;list&amp;gt;
      &amp;lt;param name="label"&amp;gt;index&amp;lt;/param&amp;gt;
      &amp;lt;param name="value"&amp;gt;index&amp;lt;/param&amp;gt;
    &amp;lt;/list&amp;gt;
  &amp;lt;/param&amp;gt;
  &amp;lt;module name="ConvertToIntention"&amp;gt;
    &amp;lt;param name="settingToConvert"&amp;gt;index_setting&amp;lt;/param&amp;gt;
    &amp;lt;param name="intention"&amp;gt;
      &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
      &amp;lt;param name="arg"&amp;gt;
        &amp;lt;param name="index"&amp;gt;
          &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
          &amp;lt;param name="prefix"&amp;gt;index=&amp;lt;/param&amp;gt;
          &amp;lt;param name="value"&amp;gt;$target$&amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
      &amp;lt;/param&amp;gt;
    &amp;lt;/param&amp;gt;
    &amp;lt;module name="SearchSelectLister"&amp;gt;
      &amp;lt;param name="label"&amp;gt;Sourcetype&amp;lt;/param&amp;gt;
      &amp;lt;param name="settingToCreate"&amp;gt;sourcetype_setting&amp;lt;/param&amp;gt;
      &amp;lt;param name="search"&amp;gt;| metadata type="sourcetypes" $index$&amp;lt;/param&amp;gt;
      &amp;lt;param name="applyOuterIntentionsToInternalSearch"&amp;gt;True&amp;lt;/param&amp;gt;
      &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
        &amp;lt;list&amp;gt;
          &amp;lt;param name="label"&amp;gt;sourcetype&amp;lt;/param&amp;gt;
          &amp;lt;param name="value"&amp;gt;sourcetype&amp;lt;/param&amp;gt;
        &amp;lt;/list&amp;gt;
      &amp;lt;/param&amp;gt;

      &amp;lt;module name="ConvertToIntention"&amp;gt;
        &amp;lt;param name="settingToConvert"&amp;gt;sourcetype_setting&amp;lt;/param&amp;gt;
        &amp;lt;param name="intention"&amp;gt;
          &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
          &amp;lt;param name="arg"&amp;gt;
            &amp;lt;param name="sourcetype"&amp;gt;
              &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
              &amp;lt;param name="prefix"&amp;gt;sourcetype=&amp;lt;/param&amp;gt;
              &amp;lt;param name="value"&amp;gt;$target$&amp;lt;/param&amp;gt;
            &amp;lt;/param&amp;gt;
          &amp;lt;/param&amp;gt;
        &amp;lt;/param&amp;gt;
        &amp;lt;module name="SearchSelectLister"&amp;gt;
          &amp;lt;param name="label"&amp;gt;Source&amp;lt;/param&amp;gt;
          &amp;lt;param name="settingToCreate"&amp;gt;source_setting&amp;lt;/param&amp;gt;
          &amp;lt;param name="search"&amp;gt;| metadata type="sources" $index$ $sourcetype$ &amp;lt;/param&amp;gt;
          &amp;lt;param name="applyOuterIntentionsToInternalSearch"&amp;gt;True&amp;lt;/param&amp;gt;
          &amp;lt;param name="searchFieldsToDisplay"&amp;gt;
            &amp;lt;list&amp;gt;
              &amp;lt;param name="label"&amp;gt;source&amp;lt;/param&amp;gt;
              &amp;lt;param name="value"&amp;gt;source&amp;lt;/param&amp;gt;
            &amp;lt;/list&amp;gt;
          &amp;lt;/param&amp;gt;
          &amp;lt;module name="HiddenSearch"&amp;gt;
            &amp;lt;param name="search"&amp;gt;$index$ $sourcetype$ $source$&amp;lt;/param&amp;gt;
            &amp;lt;module name="ConvertToIntention"&amp;gt;
              &amp;lt;param name="settingToConvert"&amp;gt;source_setting&amp;lt;/param&amp;gt;
              &amp;lt;param name="intention"&amp;gt;
                &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
                &amp;lt;param name="arg"&amp;gt;
                  &amp;lt;param name="source"&amp;gt;
                    &amp;lt;param name="fillOnEmpty"&amp;gt;True&amp;lt;/param&amp;gt;
                    &amp;lt;param name="prefix"&amp;gt;source=&amp;lt;/param&amp;gt;
                    &amp;lt;param name="value"&amp;gt;$target$&amp;lt;/param&amp;gt;
                  &amp;lt;/param&amp;gt;
                &amp;lt;/param&amp;gt;
              &amp;lt;/param&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this the output i am getting &lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/source_1.png" alt="alt text" /&gt;&lt;BR /&gt;
thanks!!!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 05:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54280#M2852</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-12-05T05:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54281#M2853</link>
      <description>&lt;P&gt;The fundamental problem here is that while the metadata command can accept an "index" argument, and it will return only the sourcetypes, sources and hosts for that index,   the index field is unique in this respect.   meaning that the metadata command is not able to filter the list of sources to be just those that match a single sourcetype,  or host etc.  and likewise for all combinations.  The only one that works is the index=foo argument.  &lt;/P&gt;

&lt;P&gt;Why the command &lt;EM&gt;allows&lt;/EM&gt; you to type "sourcetype=foobarbaz"  without giving some error here, I'm not sure.   Note that you can run  &lt;CODE&gt;| metadata type="sources" index=main sourcetype=nonexistent source=also_nonexistent fred=mildred&lt;/CODE&gt;  and it will happily give you all of the sources back as though you had only passed the index term...&lt;/P&gt;

&lt;P&gt;Anyway, you can of course get the correct matching sources by running the actual search against the index, but since you'd have to get every event off of disk for that index and sourcetype, this can be &lt;EM&gt;extremely&lt;/EM&gt; expensive and for that reason it's probably not practical to do so. &lt;/P&gt;

&lt;P&gt;Incidentally, if you use more than two SearchSelectListers you can hit some confusion where the intentions actually get consumed by the lister modules, so you have to re-convert an intention that you already converted further upstream.  You may consider switching to Sideview Utils because a) no intentions any more,  b) no listers any more,  c) lots of great new modules to use,  and d) it makes the advanced XML far easier to deal with. &lt;/P&gt;

&lt;P&gt;For example, here's the same view written out using Sideview modules: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Search" layoutPanel="panel_row1_col1" autoRun="True"&amp;gt;
  &amp;lt;param name="search"&amp;gt;| eventcount summarize=false index=* | search index!="splunklogger" index!="summary" index!="history" | sort -index&amp;lt;/param&amp;gt;

  &amp;lt;module name="Pulldown"&amp;gt;
    &amp;lt;param name="name"&amp;gt;index&amp;lt;/param&amp;gt;
    &amp;lt;param name="label"&amp;gt;Index&amp;lt;/param&amp;gt;
    &amp;lt;param name="valueField"&amp;gt;index&amp;lt;/param&amp;gt;
    &amp;lt;param name="template"&amp;gt;index="$value$"&amp;lt;/param&amp;gt;

    &amp;lt;module name="Search"&amp;gt;
      &amp;lt;param name="search"&amp;gt;| metadata type="sourcetypes" $index$&amp;lt;/param&amp;gt;

      &amp;lt;!-- you can use $name$ as internal shorthand for your name param --&amp;gt;
      &amp;lt;module name="Pulldown"&amp;gt;
        &amp;lt;param name="name"&amp;gt;sourcetype&amp;lt;/param&amp;gt;
        &amp;lt;param name="label"&amp;gt;Sourcetype&amp;lt;/param&amp;gt;
        &amp;lt;param name="valueField"&amp;gt;$name$&amp;lt;/param&amp;gt;
        &amp;lt;param name="template"&amp;gt;$name$="$value$"&amp;lt;/param&amp;gt;

        &amp;lt;module name="Search"&amp;gt;
          &amp;lt;param name="search"&amp;gt;| metadata type="sources" $index$ $sourcetype$&amp;lt;/param&amp;gt;

          &amp;lt;module name="Pulldown"&amp;gt;
            &amp;lt;param name="name"&amp;gt;source&amp;lt;/param&amp;gt;
            &amp;lt;param name="label"&amp;gt;Source&amp;lt;/param&amp;gt;
            &amp;lt;param name="valueField"&amp;gt;$name$&amp;lt;/param&amp;gt;
            &amp;lt;param name="template"&amp;gt;$name$="$value$"&amp;lt;/param&amp;gt;

            &amp;lt;module name="Search"&amp;gt;
              &amp;lt;param name="search"&amp;gt;$index$ $sourcetype$ $source$ | head 100&amp;lt;/param&amp;gt;

              &amp;lt;module name="Pager"&amp;gt;
                &amp;lt;module name="EventsViewer"&amp;gt;&amp;lt;/module&amp;gt;
              &amp;lt;/module&amp;gt;
            &amp;lt;/module&amp;gt;
          &amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that while this example dispatches the correct searches, it still suffers from the problem that you're reporting - simply because the metadata command ignores the source and sourcetype arguments.  Nonetheless I thought I'd provide the syntax so you can see how much easier it is to deal with. &lt;/P&gt;

&lt;P&gt;You can get the latest Sideview Utils only from the Sideview site &lt;A href="http://sideviewapps.com/apps/sideview-utils/"&gt;http://sideviewapps.com/apps/sideview-utils/&lt;/A&gt; , the latest version is 2.2.8,  and it's free for internal use. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 08:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54281#M2853</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2012-12-05T08:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54282#M2854</link>
      <description>&lt;P&gt;hi smolcj,&lt;/P&gt;

&lt;P&gt;ii tried with the sample codeyou had given ..but still i am getting the error as below&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/sour.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 09:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54282#M2854</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-12-05T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54283#M2855</link>
      <description>&lt;P&gt;why cant u try this&lt;BR /&gt;
$index$ $sourcetype$ |top source&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 09:35:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54283#M2855</guid>
      <dc:creator>sruthy</dc:creator>
      <dc:date>2012-12-05T09:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: dropdown not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54284#M2856</link>
      <description>&lt;P&gt;hi sruthy,&lt;/P&gt;

&lt;P&gt;i got the same error as above&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2012 09:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/dropdown-not-working/m-p/54284#M2856</guid>
      <dc:creator>splunkpoornima</dc:creator>
      <dc:date>2012-12-05T09:38:38Z</dc:date>
    </item>
  </channel>
</rss>

