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!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...