<?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 Drop Down Menu with URL in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-Down-Menu-with-URL/m-p/53778#M43883</link>
    <description>&lt;P&gt;I would like to create a Drop Down Menu using URL. How can I do it?&lt;BR /&gt;
This is an example using time. Rather than time I need a URL. &lt;/P&gt;

&lt;P&gt;&lt;INPUT type="time" /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;INPUT type="dropdown" token="timeSpan" /&gt;&lt;BR /&gt;
&lt;LABEL&gt;Time span for charts&lt;/LABEL&gt;&lt;BR /&gt;
&lt;DEFAULT&gt;span=4h&lt;/DEFAULT&gt;&lt;BR /&gt;
&lt;CHOICE value="span=5m"&gt;5 Minute&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=10m"&gt;10 Minutes&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=1h"&gt;1 hour&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=4h"&gt;4 hours&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=24h"&gt;24 hours&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=7d"&gt;7 days&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="rt"&gt;Real-time&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2012 19:55:00 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2012-01-18T19:55:00Z</dc:date>
    <item>
      <title>Drop Down Menu with URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-Down-Menu-with-URL/m-p/53778#M43883</link>
      <description>&lt;P&gt;I would like to create a Drop Down Menu using URL. How can I do it?&lt;BR /&gt;
This is an example using time. Rather than time I need a URL. &lt;/P&gt;

&lt;P&gt;&lt;INPUT type="time" /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;INPUT type="dropdown" token="timeSpan" /&gt;&lt;BR /&gt;
&lt;LABEL&gt;Time span for charts&lt;/LABEL&gt;&lt;BR /&gt;
&lt;DEFAULT&gt;span=4h&lt;/DEFAULT&gt;&lt;BR /&gt;
&lt;CHOICE value="span=5m"&gt;5 Minute&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=10m"&gt;10 Minutes&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=1h"&gt;1 hour&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=4h"&gt;4 hours&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=24h"&gt;24 hours&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="span=7d"&gt;7 days&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;CHOICE value="rt"&gt;Real-time&lt;/CHOICE&gt;&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 19:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-Down-Menu-with-URL/m-p/53778#M43883</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-01-18T19:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down Menu with URL</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-Down-Menu-with-URL/m-p/53779#M43884</link>
      <description>&lt;P&gt;This is using simplified xml.&lt;/P&gt;

&lt;P&gt;My search string is something along the lines of:&lt;/P&gt;

&lt;P&gt;source=mysource.log $myURL$ | ...other phrases... | stats blahblahblah.....&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="myURL"&amp;gt;
   &amp;lt;label&amp;gt;Select Tag&amp;lt;/label&amp;gt;
   &amp;lt;!-- Put in your Any value here, if desired --&amp;gt;
   &amp;lt;choice value="myURL=* OR NOT myURL=*"&amp;gt;Any&amp;lt;/choice&amp;gt;
   &amp;lt;populatingSearch fieldForValue="mytext" fieldForLabel="mytag"&amp;gt;
      &amp;lt;!-- I use the eval to create the search text in my populating search --&amp;gt;
      &amp;lt;!-- Assuming that you already have a myURL field with the URL information --&amp;gt;
      &amp;lt;!-- This also is the entire bit of text for the search my search string --&amp;gt;
      &amp;lt;![CDATA[source=mylog.log | eval "myURL=\""+myURL+"\""]]&amp;gt;
   &amp;lt;/populatingSearch&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;When you select one of the URLs--you get:&lt;/P&gt;

&lt;P&gt;source=mysource.log myURL="123.123.123.123" | ...other phrases | ....etc&lt;/P&gt;

&lt;P&gt;When you select "Any", you get:&lt;/P&gt;

&lt;P&gt;source=mysource.log myURL=* OR NOT myURL=* | ...other phrases | ....etc&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 20:03:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Drop-Down-Menu-with-URL/m-p/53779#M43884</guid>
      <dc:creator>wwhitener</dc:creator>
      <dc:date>2012-01-30T20:03:14Z</dc:date>
    </item>
  </channel>
</rss>

