Dashboards & Visualizations

Drop Down Menu with URL

lpolo
Motivator

I would like to create a Drop Down Menu using URL. How can I do it?
This is an example using time. Rather than time I need a URL.





span=4h
5 Minute
10 Minutes
1 hour
4 hours
24 hours
7 days
Real-time

Tags (3)
0 Karma

wwhitener
Communicator

This is using simplified xml.

My search string is something along the lines of:

source=mysource.log $myURL$ | ...other phrases... | stats blahblahblah.....

<input type="dropdown" token="myURL">
   <label>Select Tag</label>
   <!-- Put in your Any value here, if desired -->
   <choice value="myURL=* OR NOT myURL=*">Any</choice>
   <populatingSearch fieldForValue="mytext" fieldForLabel="mytag">
      <!-- I use the eval to create the search text in my populating search -->
      <!-- Assuming that you already have a myURL field with the URL information -->
      <!-- This also is the entire bit of text for the search my search string -->
      <![CDATA[source=mylog.log | eval "myURL=\""+myURL+"\""]]>
   </populatingSearch>

When you select one of the URLs--you get:

source=mysource.log myURL="123.123.123.123" | ...other phrases | ....etc

When you select "Any", you get:

source=mysource.log myURL=* OR NOT myURL=* | ...other phrases | ....etc

Cheers!

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...