Splunk Search

How to redirect from one view to another

geetanjali
Path Finder

Hi,

I have one view with Line graph and i am using timechart for drawing it. I want to redirect to another view while clicking on Line graph. I have tried :

Screen_2_2

While clicking on line graph it is redirected to Screen_2_2. but some sid=*********(numeric value) is also passing as parameter.

I have also tried :


Screen_2_2


But it is also passing parameters in URL.

how can i avoid this parameter. I just want to redirect to screen_2_2 without passing any argument.

Please help, if anyone knows the solution.

Thanks in advance
Geetanjali

Tags (1)

sideview
SplunkTrust
SplunkTrust

I dont think ViewRedirector can do this, at least without writing your own javascript in application.js to customize it's behavior.

However the Sideview Utils app includes a module called Redirector that is a bit simpler and more intuitive than ViewRedirector, and among other benefits it doesn't require a search to be passed.

A simple config that just redirects to a URL when data hits it, looks like this:

<module name="Redirector">
   <param name="url">some_view</param>
</module>

For less trivial use cases, you can pass args by including any param starting with "arg.", like so:

<module name="Redirector">
    <param name="url">some_view</param>
    <param name="arg.myArg">someValue</param>
</module>

And you can do $foo$ substitution into any argument value, or the argument names, or the URL itself. Most of the time you'll just make the argument values dynamic, but here's a somewhat extreme example where I'm doing all 3:

<module name="Redirector">
    <param name="url">$which$_detail</param>
    <param name="arg.myArg">$somePulldownName$</param>
    <param name="arg.$dynamicArgName$">$dynamicArgValue$</param>
</module>

But have you considered simply using StaticContentSample or ServerSideInclude (or the HTML module from Sideview Utils) to just render a link?

It seems a little strange to let the user click on various elements in the chart when all of the clicks go to the same place. A simple blue link seems like it would be less confusing to your users.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...