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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...