App: Autologin

Categories:

Description

Need to get into a Splunk Enterprise interface fast, and don't want to go through the login to do it? The Autologin app lets you configure an unprivileged user to be automatically logged into your Splunk instance when they use a special URL on the Splunkd server.

Requires Splunk Enterprise, an unprivileged guest account, and the Splunkd listening port open to your web browser.

About

As the name implies, this app provides a way to automatically log a user into a Splunk instance without needing to enter a username or password in the Splunk login box. This is accomplished by using the Splunkd server to serve up a simple AJAX based HTML page, which then asks Splunkd to proxy a request to SplunkWeb to authenticate a user. The response is used to set a cookie, and then the user is redirected to the main view of the Splunk install. It's magic really.

Note: If your splunkd server is located on a box other than a respective splunkweb server, this app won't work due to limits in cross domain AJAX calls. Sorry.

Getting Setup

  • Create a guest account that has lowered privileges on your Splunk server.
  • Install the app by downloading, and untarring in the $SPLUNK_HOME/etc/apps directory, or installing directly from SplunkBase.
  • Restart Splunk.
  • Log back in, click on the 'admin' link in the top right, then on the 'applications' link in the left nav, then click on the 'configure' link to the right of the app name.
  • Enter the guest account's username and password in the text entry boxes. The password will be visible in clear text.
  • Click 'save', then restart Splunk again.
  • Determine the URL to give your users. It will be of the format: https://splunk.example.com:8089/services/autologin/login.html - and will depend on the port you have Splunkd listening on, and whether or not you have SSL enabled.

Because the connection between the browser and Splunkd is encrypted, your user/pass are somewhat secure when being sent over. However, putting these credentials in a text file which is readable by others is 'Not A Very Good Idea'.

I strongly recommend NOT authenticating users which have elevated roles with this technique.

Your Rating

  (1 vote)
Login to rate this app

Preview App: