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 (3)
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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...