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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...