Dashboards & Visualizations

view and inheritance

guilhem
Contributor

Hello,

How can you use the same parts of simple/advanced XML in several views, without having to duplicate the code? Is it possible to create a parent view for all your views (or anything similar with/ without inheritance)?

I don't think (maybe I am wrong) it is possible to do so with a module, as the parts of xml I am talking about contains many things, like 30 modules and custom javascript.

Basically I need to have this big portion of xml inside all my views, and I do not want to duplicate it every time for obvious reason (code maintainability, efficiency etc...).

Thanks!!

gkanapathy
Splunk Employee
Splunk Employee

Unfortunately not, there is not really that kind of modularity in Advanced XML (short of creating custom modules and including all the logic in there -- that would not be modularizing the XML, it would simply be used in the XML). I would not hold out too much hope for such changes in Advanced XML in the future. You would be more likely to see enhancements to the Simple XML to bring it closer to functional parity.

0 Karma

guilhem
Contributor

Thanks! didn't see this topic. I have made an enhancement request and will give information as it is available.

0 Karma

jonuwz
Influencer

not sure if this actually got made into an ER :

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 ...