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!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...