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
Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!