Dashboards & Visualizations

Dynamic Dropdown Timeframe

VirTechSystems
New Member

I have created a form that shows web filter events from our firewall. It shows data in the format of date, time, computer, category, page.

I have added a dynamic dropdown to the form to specify the category, but I would like the data populated in it restricted to the time selected on the form.

Here are the elements

<input type="dropdown" token="category">
<label>Category</label>
<populatingSavedSearch fieldForValue="category" fieldForLabel="category">Webfilter Categories - Blocked</populatingSavedSearch>
<choice value="*">Any</choice>
</input>

<input type="time">
<label>Time</label>
<default>Last 24 Hours</default>
</input>

I know of the attributes earliestTime and latestTime, but how do I pass the time from the input time field to the dynamic dropdown?

Thanks

Tags (3)
0 Karma
1 Solution

Richfez
SplunkTrust
SplunkTrust

I have a time input of type="time" and with token="time_picker"

So, in the XML for the dropdown in the "populatingSearch" I added

earliest="$time_picker.earliest$" latest="$time_picker.latest$"

View solution in original post

Richfez
SplunkTrust
SplunkTrust

I have a time input of type="time" and with token="time_picker"

So, in the XML for the dropdown in the "populatingSearch" I added

earliest="$time_picker.earliest$" latest="$time_picker.latest$"

Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

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 ...