<?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: Cannot create static or dynamic dropdowns for this search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468930#M30791</link>
    <description>&lt;P&gt;Hi andreshuexes,&lt;BR /&gt;
what do you mean with "creating an area chart linked to the dropdown"?&lt;BR /&gt;
You can create a chart in a panel that uses the drilldown as a filter using a token (in your example $host_name$), why you don't reach to do this?&lt;BR /&gt;
Go in [Edit -- UI -- Select Visualization] and modify your visualization.&lt;BR /&gt;
Beware that to do this you must have (as in your example) only streaming commands as stats, timechart or chart.&lt;/P&gt;

&lt;P&gt;If this answer solved your problem, please, accept and/or upvote it.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2019 12:50:26 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-10-24T12:50:26Z</dc:date>
    <item>
      <title>Cannot create static or dynamic dropdowns for this search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468927#M30788</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Since I'm a very recent Splunk user I found problems creating dropdowns for my dashboard compiling the Google bot hits to our domains&lt;/P&gt;

&lt;P&gt;The data I want to get is coming from the search bellow, I'm interested in getting an area chart but being able also to filter with the dropdown each one of the host_names (domains of my company)&lt;/P&gt;

&lt;P&gt;index=x_com_app user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; +&lt;A href="http://www.google.com/bot.html)" target="_blank"&gt;http://www.google.com/bot.html)&lt;/A&gt;" OR user_agent="Googlebot-Image/1.0" OR user_agent="Googlebot/2.1 (+&lt;A href="http://www.google.com/bot.html)" target="_blank"&gt;http://www.google.com/bot.html)&lt;/A&gt;" OR user_agent = "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +&lt;A href="http://www.google.com/bot.html)" target="_blank"&gt;http://www.google.com/bot.html)&lt;/A&gt;" host_name="&lt;A href="http://www.x.com" target="_blank"&gt;www.x.com&lt;/A&gt;" OR host_name="&lt;A href="http://www.x.com.cn" target="_blank"&gt;www.x.com.cn&lt;/A&gt;" OR host_name="&lt;A href="http://www.x.co.jp%22%7C" target="_blank"&gt;www.x.co.jp"|&lt;/A&gt; timechart span=1d count by host_name limit=10&lt;/P&gt;

&lt;P&gt;Hope you can help me and thanks a lot in advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468927#M30788</guid>
      <dc:creator>andreshuexes</dc:creator>
      <dc:date>2020-09-30T02:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create static or dynamic dropdowns for this search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468928#M30789</link>
      <description>&lt;P&gt;Hi andreshuexes,&lt;BR /&gt;
you have to create a simple search with the list of the host_names, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=x_com_app
| dudup host_names
| sort host_names
| table host_names
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you can create your dropdown list:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="host_names"&amp;gt;
      &amp;lt;label&amp;gt;host_names&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;host_names&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;host_names&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=x_com_app
                      | dudup host_names
                      | sort host_names
                      | table host_names
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;prefix&amp;gt;host_names="&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;
                    index=x_com_app user_agent = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" OR user_agent="Googlebot-Image/1.0" OR user_agent="Googlebot/2.1 (+http://www.google.com/bot.html)" OR user_agent = "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" $host_name$
                  | timechart span=1d count by host_name limit=10
          &amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-60m@m&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="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
      &amp;lt;/event&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;This is an example using search panel but you can use also other graphic panels.&lt;BR /&gt;
In addition, instead of a dropdown menu, you could also use multiple choice inputs.&lt;/P&gt;

&lt;P&gt;You can find useful examples in Splunk Dashboard Examples App ( &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt; ). &lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 09:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468928#M30789</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-24T09:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create static or dynamic dropdowns for this search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468929#M30790</link>
      <description>&lt;P&gt;Hi Giusseppe,&lt;/P&gt;

&lt;P&gt;Firstly thanks a lot for your reply, it worked, the dropdown is working!!&lt;/P&gt;

&lt;P&gt;The only thing I cannot do is creating an area chart linked to the dropdown&lt;/P&gt;

&lt;P&gt;Should I created a new search or is there a way to link the chart back?&lt;/P&gt;

&lt;P&gt;Thanks again&lt;/P&gt;

&lt;P&gt;Andres&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468929#M30790</guid>
      <dc:creator>andreshuexes</dc:creator>
      <dc:date>2019-10-24T12:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create static or dynamic dropdowns for this search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468930#M30791</link>
      <description>&lt;P&gt;Hi andreshuexes,&lt;BR /&gt;
what do you mean with "creating an area chart linked to the dropdown"?&lt;BR /&gt;
You can create a chart in a panel that uses the drilldown as a filter using a token (in your example $host_name$), why you don't reach to do this?&lt;BR /&gt;
Go in [Edit -- UI -- Select Visualization] and modify your visualization.&lt;BR /&gt;
Beware that to do this you must have (as in your example) only streaming commands as stats, timechart or chart.&lt;/P&gt;

&lt;P&gt;If this answer solved your problem, please, accept and/or upvote it.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468930#M30791</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-10-24T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot create static or dynamic dropdowns for this search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468931#M30792</link>
      <description>&lt;P&gt;Hi Guisseppe, &lt;/P&gt;

&lt;P&gt;Exactly changing the visualization, I was playing around and seems to be okay&lt;/P&gt;

&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cannot-create-static-or-dynamic-dropdowns-for-this-search/m-p/468931#M30792</guid>
      <dc:creator>andreshuexes</dc:creator>
      <dc:date>2019-10-24T13:08:24Z</dc:date>
    </item>
  </channel>
</rss>

