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!

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