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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...