<?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 Dropdown variables in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-variables/m-p/70926#M3823</link>
    <description>&lt;P&gt;Let's say I have the following query:&lt;/P&gt;

&lt;P&gt;index=myapp supportgroup=$supportgroup$ | top productName &lt;/P&gt;

&lt;P&gt;where some value will be substituted for $supportgroup$, for example helpdesk, or HR, etc...&lt;/P&gt;

&lt;P&gt;I need help populating the searchTemplate and populatingSearch tags for a dropdown I'm working on.  I only need help with those two lines.  The rest of the dropdown works fine.&lt;/P&gt;

&lt;P&gt;Here's what I have.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;searchTemplate&amp;gt;index=myapp supportGroup=$supportGroup$ | top productName &amp;lt;/searchTemplate&amp;gt;

&amp;lt;populatingSearch fieldForValue="supportGroup" fieldForLabel="supportGroup"&amp;gt;&amp;lt;![CDATA[index=myapp supportGroup | top productName ]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Those lines are not producing the desired output based on my search above.  Please help.  Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2011 21:44:14 GMT</pubDate>
    <dc:creator>DTERM</dc:creator>
    <dc:date>2011-09-06T21:44:14Z</dc:date>
    <item>
      <title>Dropdown variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-variables/m-p/70926#M3823</link>
      <description>&lt;P&gt;Let's say I have the following query:&lt;/P&gt;

&lt;P&gt;index=myapp supportgroup=$supportgroup$ | top productName &lt;/P&gt;

&lt;P&gt;where some value will be substituted for $supportgroup$, for example helpdesk, or HR, etc...&lt;/P&gt;

&lt;P&gt;I need help populating the searchTemplate and populatingSearch tags for a dropdown I'm working on.  I only need help with those two lines.  The rest of the dropdown works fine.&lt;/P&gt;

&lt;P&gt;Here's what I have.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;searchTemplate&amp;gt;index=myapp supportGroup=$supportGroup$ | top productName &amp;lt;/searchTemplate&amp;gt;

&amp;lt;populatingSearch fieldForValue="supportGroup" fieldForLabel="supportGroup"&amp;gt;&amp;lt;![CDATA[index=myapp supportGroup | top productName ]]&amp;gt;&amp;lt;/populatingSearch&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Those lines are not producing the desired output based on my search above.  Please help.  Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2011 21:44:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-variables/m-p/70926#M3823</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2011-09-06T21:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown variables</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-variables/m-p/70927#M3824</link>
      <description>&lt;P&gt;well with that &lt;CODE&gt;&amp;lt;populatingSearch&amp;gt;&lt;/CODE&gt; you're telling it to run &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myapp supportGroup | top productName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then in those search results, look for a 'supportGroup' field.  But there wont be a supportGroup field there. &lt;/P&gt;

&lt;P&gt;Also,  note that &lt;CODE&gt;top&lt;/CODE&gt; by default will only return the top 10 values. &lt;/P&gt;

&lt;P&gt;You probably want &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myapp supportGroup | stats count by supportGroup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myapp supportGroup | top 100 supportGroup
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2011 21:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dropdown-variables/m-p/70927#M3824</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-09-06T21:54:35Z</dc:date>
    </item>
  </channel>
</rss>

