Getting Data In

input type="time"

sondradotcom
Path Finder

I'm using

<input type="time">

in my form, but I can't figure out how to make the subsequent tables actually "hear" the time range. They seem to default to looking at the entire set of data regardless of what the time pulldown is set to. Any thoughts?

-S.

Tags (1)
0 Karma

sondradotcom
Path Finder

I can't seem to get it to not parse some of this, but hopefully you get the right idea.

    <form> <label>Live Stream Form</label>


    <fieldset>
        <input type="dropdown" token="Streamname"> <choice value="*">All Streams</choice> <populatingSearch fieldForValue="Streamname" fieldForLabel="Streamname">| inputlookup Streams | dedup Streamname | sort Streamname</populatingSearch> </input>

<input type="time">
        <default>Last 7 days</default>
      </input>   </fieldset> <row> <single>
    <searchTemplate>index=summary search_name="si_flashlive_filename" Streamname="$Streamname$"  | stats count | eval count = tostring(count,"commas")</searchTemplate> <title>Total Requests</title> </single> </form>

Ayn
Legend

Hard to say anything without seeing the whole form. Could you paste the code for the whole form, please.

0 Karma
Get Updates on the Splunk Community!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...