Splunk Enterprise

Why does some Dashboard source code start with <dashboard> and others with <form>

Gregski11
Contributor

hi I am fairly new to Splunk and inherited an environment and would like to know why some of our Dashboards source code starts with the <dashboard> tag where others don't have that tag and start with the <form> tag

furthermore if I add the <dashboard> tag above the <form> tag (of course terminate it at the end of the code as well with </dashboard>) I get the following Alerts / error:

This dashboard has no panels. Start editing to add panels.

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

If a dashboard has user inputs (radio button, time picker, etc.) then the <dashboard> element is replaced with <form>.  You can't specify both <dashboard> and <form>.

Be sure to use version="1.1" either way.

<form version="1.1">
...
</form>
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

If a dashboard has user inputs (radio button, time picker, etc.) then the <dashboard> element is replaced with <form>.  You can't specify both <dashboard> and <form>.

Be sure to use version="1.1" either way.

<form version="1.1">
...
</form>
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...