Dashboards & Visualizations

templates for xml?

marco_sulla
Path Finder

Is it possible to create templates for Splunk XML, or I must use Django templates?

Tags (2)
0 Karma
1 Solution

marco_sulla
Path Finder

Short answer

Well, it seems that you can't.

Long answer:

Reference Panels:

You can only use Reference Panels. This only works for panels obviously, so you can't use it for inputs, for example.

Furthermore you can't customize your reference panel. For example, if you want to change the drilldown behaviour from row to cell in one specific dashboard for that referenced panel, you can't do it.

SplunkJS:

I think you can add a div id="some_id" and create a javascript view associated with that id. Obviously, you are managing client-side something that should managed by server. This is a problem if security is a concern for you.

Advanced XML:

I think you can do modularization with Advanced XML, but for what I know its usage is deprecated.

Conclusion:

Django bindings seem to be the only way to have a proper template system in Splunk. This, IMHO and without offence, makes simple XML completely useless.

View solution in original post

0 Karma

marco_sulla
Path Finder

Short answer

Well, it seems that you can't.

Long answer:

Reference Panels:

You can only use Reference Panels. This only works for panels obviously, so you can't use it for inputs, for example.

Furthermore you can't customize your reference panel. For example, if you want to change the drilldown behaviour from row to cell in one specific dashboard for that referenced panel, you can't do it.

SplunkJS:

I think you can add a div id="some_id" and create a javascript view associated with that id. Obviously, you are managing client-side something that should managed by server. This is a problem if security is a concern for you.

Advanced XML:

I think you can do modularization with Advanced XML, but for what I know its usage is deprecated.

Conclusion:

Django bindings seem to be the only way to have a proper template system in Splunk. This, IMHO and without offence, makes simple XML completely useless.

0 Karma

kendrickt
Path Finder

Take a look at this link, it explains more about Splunks web framework.

http://docs.splunk.com/Documentation/Splunk/6.2.0/Viz/WebFramework

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...