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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...