Dashboards & Visualizations

Add timein setup.xml

Nichiket
New Member

Hello everyone,

I am trying to add date input in setup.xml. I have seen input type=time is listed but it doesn't works in setup.xml, can you help me about how o

Labels (2)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@Nichiket 

 

You can try something like this. Change values as per your requirement. 

 

<setup>
  <block title="details" endpoint="configs/conf-indexes">
    <input field="date">
      <label>Date</label>
      <type>text</type>
    </input>
    <text>
      <![CDATA[ 
      <script>
        var id="#\\/configs\\/conf-indexes\\/splunk_dashboard_metrics_summary_data\\/date_id";
        //do inspect to get this Id.

        $(id)[0].type="time";
      </script>
      ]]>
    </text>
  </block>
</setup>

 

0 Karma
Get Updates on the Splunk Community!

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...

What's New in Splunk Observability - October 2025

What’s New?    We’re excited to announce the latest enhancements to Splunk Observability Cloud and share ...