All Apps and Add-ons

Is ViewstateAdapter needed with Sideview Utils?

Lowell
Super Champion

Is the usage of the ViewstateAdapter module needed or recommended for view that use the Sideview Utils modules?

I did a quick search and didn't find any uses of ViewstateAdapter in any of the examples:

fgrep  ViewstateAdapter ~/etc/apps/sideview_utils/default/data/ui/views/*.xml

No matches. I'm guessing that means that we don't need this module?

0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

Nope, you dont need it. ViewStateAdapter shows up a lot because it gets used by the Simplified XML internally, and thus when people begin their foray into Advanced XML by converting a view from the Simplified XML, that and a bunch of other cruft gets carried along with it.

You can safely remove it. For the record what it does is look for information that a HiddenSavedSearch module upstream might have written into the context. If it's there, and basically if that saved search has a viewstate associated with it, it will reconstitute some of the keys from that viewstate. like chart type and stackmode and things like that.

View solution in original post

sideview
SplunkTrust
SplunkTrust

Nope, you dont need it. ViewStateAdapter shows up a lot because it gets used by the Simplified XML internally, and thus when people begin their foray into Advanced XML by converting a view from the Simplified XML, that and a bunch of other cruft gets carried along with it.

You can safely remove it. For the record what it does is look for information that a HiddenSavedSearch module upstream might have written into the context. If it's there, and basically if that saved search has a viewstate associated with it, it will reconstitute some of the keys from that viewstate. like chart type and stackmode and things like that.

Lowell
Super Champion

Good to know. This was very helpful, thanks!

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

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

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...