Dashboards & Visualizations

Disable Preview Mode in SideView

jraynor196
Explorer

Is it possible to turn off the preview window. Some of my views are complex and
some have auto refresh turned on, so this makes developing those views
a little harder (while it is refreshing). If you had a checkbox or
something to disable preview mode, that would be great.

Tags (2)
0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

There is a core Splunk module called "EnablePreview" that you can use today. It's a bit clunky and works differently than other modules, but it works, and I haven't yet gotten around to creating a better way.

The weird thing about it, is that you have to put the EnablePreview module below the "dispatch point". If you remember your reading from the "Introduction to the Advanced XML" page in Sideview Utils, there's a certain point in the hierarchy below which the framework will have automatically dispatched the search. As long as the EnablePreview module is at that point or below, you can use it to turn preview on or off as you like.

To have it just be hidden and turn preview OFF,

<module name="EnablePreview">
  <param name="enable">False</param>
  <param name="display">False</param>
</module>

and if for some reason you want it to be a visible checkbox that users can click while the job is running, that will indeed turn preview on/off right while the job is running.

<module name="EnablePreview">
  <param name="enable">False</param>
</module>

View solution in original post

0 Karma

sideview
SplunkTrust
SplunkTrust

There is a core Splunk module called "EnablePreview" that you can use today. It's a bit clunky and works differently than other modules, but it works, and I haven't yet gotten around to creating a better way.

The weird thing about it, is that you have to put the EnablePreview module below the "dispatch point". If you remember your reading from the "Introduction to the Advanced XML" page in Sideview Utils, there's a certain point in the hierarchy below which the framework will have automatically dispatched the search. As long as the EnablePreview module is at that point or below, you can use it to turn preview on or off as you like.

To have it just be hidden and turn preview OFF,

<module name="EnablePreview">
  <param name="enable">False</param>
  <param name="display">False</param>
</module>

and if for some reason you want it to be a visible checkbox that users can click while the job is running, that will indeed turn preview on/off right while the job is running.

<module name="EnablePreview">
  <param name="enable">False</param>
</module>
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

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 ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...