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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...