- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

kiril123
Path Finder
02-28-2018
02:46 AM
I use the following URL to call Splunk dashboard and pass a device_name as a parameter:
Is there a way to pass username and password via URL as well?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
p_gurav
Champion
02-28-2018
03:37 AM
Hi you can try this:
In etc/system/local/web.conf, you can add following settings:
enable_insecure_login = [True | False]
* Indicates if the GET-based /account/insecurelogin endpoint is enabled
* Provides an alternate GET-based authentication mechanism
* If True, the following url is available:
http://localhost:8000/en-US/account/insecurelogin?loginType=splunk&username=noc&password=XXXXXXX
* If False, only the main /account/login endpoint is available
* Defaults to False
Restart splunk after updating settings.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
p_gurav
Champion
02-28-2018
03:37 AM
Hi you can try this:
In etc/system/local/web.conf, you can add following settings:
enable_insecure_login = [True | False]
* Indicates if the GET-based /account/insecurelogin endpoint is enabled
* Provides an alternate GET-based authentication mechanism
* If True, the following url is available:
http://localhost:8000/en-US/account/insecurelogin?loginType=splunk&username=noc&password=XXXXXXX
* If False, only the main /account/login endpoint is available
* Defaults to False
Restart splunk after updating settings.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

kiril123
Path Finder
02-28-2018
04:01 AM
Hi,
Thank you for your answer. Is it possible to pass username/password credentials as well as device_name in a single URL?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
p_gurav
Champion
02-28-2018
04:35 AM
Hi,
I am not sure if you can directly pass both parameter in same url but you can try using splunk SDK. Refere below link:
http://dev.splunk.com/view/python-sdk/SP-CAAAEK2
