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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...