Splunk Cloud Platform

Developing Views and Apps for Splunk Web

Acrobat logo Download manual as PDF

Acrobat logo Download topic as PDF

Custom visualizations in Simple XML

Include custom visualizations in Simple XML dashboards.


Add a custom visualization to a panel

Use the app name and visualization name for the <viz> type value.

To add a custom visualization to a dashboard panel, indicate the visualization using the following syntax.

<viz type="[app_name.viz_name]">

For example, add the sample_viz custom visualization to a dashboard panel.

<viz type="viz_sample_app.sample_viz">

Configure visualization properties in Simple XML

Users can specify Simple XML option values for any visualization properties using this syntax:

<option name="[app].[visualization_name].[property_name]">[specified_value]</option>

For example, specify a maximum value for a custom visualization using this option. In this case, the app name is viz_sample_app and the visualization name is sample_viz.

<option name="viz_sample_app.sample_viz.maxValue">200</option>

Example Simple XML

This example shows how to include and configure a custom visualization in a Simple XML dashboard panel.

In this example, the custom visualization app name is viz_sample_app and the visualization name is sample_viz.

      <viz type="viz_sample_app.sample_viz">
          <query>index=_internal | stats count</query>
        <option name="viz_sample_app.sample_viz.maxValue">200</option>
        <option name="viz_sample_app.sample_viz.minValue">0</option>

Last modified on 24 August, 2018
Design guidelines
Custom visualizations in SplunkJS

This documentation applies to the following versions of Splunk Cloud Platform: 8.2.2112, 8.2.2201, 8.2.2203, 9.0.2205, 8.2.2202, 9.0.2208, 9.0.2209, 9.0.2303, 9.0.2305, 9.1.2308 (latest FedRAMP release), 9.1.2312

Was this documentation topic helpful?

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters