Splunk Search

How to have Splunk URL parameters to redirect url to splunk App?

dmcintosh1972
Explorer

Hi

We have an application the allows users to click on a link taking them to splunk.

The problem is that the link is hard coded in the application and only allows users to go to:

https://HOSTNAME:8000/en-GB/app/search/search

In our environment we have set the default search app as not visible and the users default app is set to one we created.

https://HOSTNAME:8000/en-GB/app/MYAPP/search

Does anyone know if there are any query string parameters I can append to the default app url that would redirect to my preferred app? (this option is available in the external app we are using)

Labels (1)
0 Karma

DMohn
Motivator

Basically: No, Splunk does not have such parameters. You will have to either change the coding in the calling App, or implement some sort of redirection method - maybe using a proxy listening on the Splunk Web Port, and rewriting calls to the standard app path.

0 Karma

nehakakar
Loves-to-Learn Everything

Hi,

I did it you can use the return_to URL parameter.

Here's an ex: URL..

 

https://HOSTNAME:8000/en-GB/app/search/search?return_to=/en-GB/app/MYAPP/search

 

When the user clicks on this URL, they will first be taken to the search app, and then they will be redirected to your preferred app MYAPP/search.

Manually test the redirection, Use browser developer tools to inspect network requests and redirects or use any online tool like https://redirectchecker.com/  This can help you to get detail redirection report might help pinpoint the issue.let me know still you have issue.

Ref: doc

0 Karma

prakash007
Builder

You can setup a default_namespace = under user-prefs.conf to login to users preferred app...

user-prefs.conf
default_namespace = <app name>
* Specifies the app that the user will see initially upon login to the
  Splunk Web User Interface.
* This uses the "short name" of the app, such as launcher, or search,
  which is synonymous with the app directory name.
* Splunk defaults this to 'launcher' via the default authorize.conf

http://docs.splunk.com/Documentation/Splunk/7.2.1/Admin/User-prefsconf

0 Karma

dmcintosh1972
Explorer

Hi prakash007 thanks for reply, I however do have the default namespace set, after login it redirects to the correct app however. once you are logged in if you go to https://HOSTNAME:8000/en-GB/app/search/search you are not redirect to the default namespace app. instead you get an error, because I have the app set as invisible.

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...