HTTP GET login (versions 2.1.x and 2.2.x)
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
HTTP GET login (versions 2.1.x and 2.2.x)
WARNING: By doing this you send users and passwords in clear text.
There is a way to do this through http GET, but it requires modifying a bit of python.
Edit line 395 of XMLResourse.py located in $SPLUNK_HOME/lib/python2.4/site-packages/splunk/search/XMLResource.py
def render_GET(self, request) :
# backdoor so scripts can auto-login just with a GET request
# instead of having to craft a proper HTTP POST.
# Doesnt help said script keep track of the cookie, which is the hard part.
# if ("usr"in request.args) and ("pwd" in request.args) :
# return self.render_POST(request)
logger.debug("LoginResource.render_GET")
sessNS = request.getSession().sessionNamespaces
Uncomment out the if and return lines and restart splunk.
To log in, you would enter this URL
http://your.host/login?usr=username&pwd=password
This documentation applies to the following versions of Splunk: 2.1 , 2.2 , 2.2.1 , 2.2.3 , 2.2.6 View the Article History for its revisions.