All Apps and Add-ons

How to identify that my dashboard is using Advanced XML or Simple XML?

akarivaratharaj
Communicator

The Advanced XML is not supported with the Splunk upgraded version of 8.X

- So how can I identify that which XML is used by my dashboard.

- In case if its using Advanced XML and it will be creating problem if my Splunk is upgraded to recent version, then how can I fix it?

Could anyone please help me on this.

Labels (2)
0 Karma

niketn
Legend

May be try rest API call to dashboard definitions and see if Advanced XML related nodes like <module> <param> or <populatingSearch> are used. Since I have not used Advanced XML myself, I do not know whether there is something in metadata fields like root, eai:type, isDashboard will be same for Advanced XML and Simple XML or not. So you can check those as well. (Do remove search filter and table all fields to compare fields for regular Simple XML dashboards and Advanced XML).

| rest /servicesNS/-/-/data/ui/views
| search eai:data IN ("*<param>*","*<module>*","*<populatingSearch>*")
| table eai:acl.app title label

 

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

richgalloway
SplunkTrust
SplunkTrust
The Splunk Upgrade Readiness app (https://splunkbase.splunk.com/app/4698/) will tell you if you have any Advanced XML and where it is.
---
If this reply helps you, Karma would be appreciated.
0 Karma

akarivaratharaj
Communicator

Okay got it.

Now I have another problem. For example, I found that my dashboard is written in Advanced XML, so I have to rewrite that into Simple XML in Splunk 8.

If I have one or few dashboards, I can go and edit manually as mentioned in the Splunk doc - https://docs.splunk.com/Documentation/Splunk/8.0.3/Viz/PanelreferenceforSimplifiedXML

But what if I have 50 or more dashboards which are using Advanced XML. In this case, rewriting each dashboard manually is not an efficient one.

Please help me on the below:
1. If there are more number of dashboards which use Advanced XML, how to fix those with automation.

2. Also if I have an app which is created by own and it is using Advanced XML, then how can fix it. Do we need to modify anything from the backend? What are the files which need changes as part of this?
 

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...