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!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...