Splunk Search

How to Use popup parameter of View Redirector of Module

tkadale
Path Finder

I have Screen A. When I click on Graph of Screen A, it navigates to Screen B in new window. I have used ViewRedirectorModule as follows:

<param name="viewTarget">Screen_B</param>
<param name="popup">True</param>

But when it redirects on Screen B, All graphs on Screen B are not displayed.
In Url bar sid is passed when it navigated from Screen A to Screen B.
Is it happening due to sid??
When I directly load Screen B, all graphs are displayed properly.
Then Why it does not show all graphs when redirected from Screen A??
Please help me!

Thanks in advance!

Tags (1)
0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

It sounds like you're trying to go to a view that is dispatching more than one search.

If that is the case, the problem is most likely that the system you're using when you do ?sid=123142231 will only work in views where the view ends up running a single search. If you try and put ?sid=1232142124 onto views that run multiple searches you will get strange results just like this, where only one of several graphs will be populated.

Solutions are, broadly speaking:

1) a lot of custom javascript yourself to try and make the default system work how you want it (which is not easy),

2) use the Redirector and URLLoader modules from Sideview Utils instead of Splunk's ViewRedirector module. Then instead of redirecting to a sid=12321321 (or a q=search foo link), you redirect to a url like ?user=bob@earliest=-4h&latest=now&host=foo.com. I'd refer you to documentation in Sideview Utils but you've asked many questions about this area already. 😃

3) Change the view around so that it only dispatches a single search, using postProcess searches and 'datacube' techniques to provide the same graphs and tables but nomt from multiple searches. This is not easy in general and depending on the search language involved it could be very tricky indeed. UI Examples however has a good page called 'using postProcess on dashboards'.

View solution in original post

0 Karma

sideview
SplunkTrust
SplunkTrust

It sounds like you're trying to go to a view that is dispatching more than one search.

If that is the case, the problem is most likely that the system you're using when you do ?sid=123142231 will only work in views where the view ends up running a single search. If you try and put ?sid=1232142124 onto views that run multiple searches you will get strange results just like this, where only one of several graphs will be populated.

Solutions are, broadly speaking:

1) a lot of custom javascript yourself to try and make the default system work how you want it (which is not easy),

2) use the Redirector and URLLoader modules from Sideview Utils instead of Splunk's ViewRedirector module. Then instead of redirecting to a sid=12321321 (or a q=search foo link), you redirect to a url like ?user=bob@earliest=-4h&latest=now&host=foo.com. I'd refer you to documentation in Sideview Utils but you've asked many questions about this area already. 😃

3) Change the view around so that it only dispatches a single search, using postProcess searches and 'datacube' techniques to provide the same graphs and tables but nomt from multiple searches. This is not easy in general and depending on the search language involved it could be very tricky indeed. UI Examples however has a good page called 'using postProcess on dashboards'.

0 Karma

Ant1D
Motivator
0 Karma

sideview
SplunkTrust
SplunkTrust

Yep. Since the only way the core splunk systems can drilldown to a new view is to pass a search or a sid, the multi-search target view ends up being loaded with a single search that overrides all the individual searches it might have. At best you can end up with lots of charts and tables showing the exact same permalinked search. This is one of the main limitations that the permalinking systems in Sideview Utils were built to address. Cheers.

0 Karma

tkadale
Path Finder

Thanks for your reply! Ctrl-Click also gives the same result. But same problem arises there. All Graphs are not displayed in the New Window.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...