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 Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...