All Apps and Add-ons

splunk Dashboard txt box input now time

splunk_jcm
New Member

alt text
alt text

I want to put the current time in the initial and default values!

current time value example = 2019-09-20

0 Karma

HiroshiSatoh
Champion

How is it like this?

<form>
  <init>
    <eval token="tk_date">strftime(now(),"%Y-%m-%d")</eval>
  </init>
  <fieldset submitButton="false">
    <input type="text" token="field1">
      <label>field1</label>
      <default>$tk_date$</default>
      <initialValue>$tk_date$</initialValue>
    </input>
  </fieldset>
</form>
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...