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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...