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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...