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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...