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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

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