Splunk Search

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)

Tags (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

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!

Using Machine Learning for Hunting Security Threats

WATCH NOW Seeing the exponential hike in global cyber threat spectrum, organizations are now striving more for ...

New Learning Videos on Topics Most Requested by You! Plus This Month’s New Splunk ...

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

How I Instrumented a Rust Application Without Knowing Rust

As a technical writer, I often have to edit or create code snippets for Splunk's distributions of ...