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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...