Forgot the admin password? How to reset the admin password in Splunk
As is common in IT, we don't write our passwords down. Unless your password is 1q2w3e4r, you probably won't remember it and will need this procedure.
To reset the admin password in Splunk, go to the password file (passwd) at $SPLUNK_HOME/etc/passwd). Rename this file so you can restore it if any step of the procedure fails.
# cd /opt/splunk/etc
# ls
# mv /opt/splunk/etc/passwd /opt/splunk/etc/passwd.oldNow we create a new configuration file to force a new password for the admin user, named user-seed.conf, in the $SPLUNK_HOME/etc/system/local directory.
# cd /opt/splunk/etc/system/local
# vi user-seed.confAdd the content below to the file, including the new password for your environment:
[user_info]
USERNAME=admin
PASSWORD=<nova_senha>Then restart the service:
# /opt/splunk/bin/splunk restartAfter restarting the service, you can log in with the password set in the file user-seed.conf, and a new passwd file was created in the directory $SPLUNK_HOME/etc.
If there are other users besides admin, copy their credentials from the file passwd.old to the new passwd file, except for the admin user.

Want to practice? Try the free We Challenge sample, with Splunk questions and explanations.
To start from scratch, see the Introduction to Splunk course on Udemy (in Portuguese). For your team, see WeValuate's Splunk training.
Questions about the post? Content suggestions? Corrections? Criticism or praise?
Please contact us at wevaluatebr@gmail.com and we will reply as soon as possible.
If you liked it, share this post on your social networks and help us spread the word!
Comments