Case 1 (If you are on Splunk 7.1 or prior) :-
- Rename the file passwd in directory $SPLUNK_HOME/etc to passwd.bkp
- Restart the splunk service
- Login using username "admin" and password "changeme"
Case 2 (If you are on Splunk 7.1+) :-
- Rename the file passwd in directory $SPLUNK_HOME/etc to passwd.bkp
- Create a file $SPLUNK_HOME/etc/system/local/user-seed.conf.
- Sample content :
[user_info]
USERNAME = admin
PASSWORD =P@ssw0rd - Restart the splunk service. This will generate a new passwd file.
- Now login using username "admin" and password "P@ssw0rd"
Reference :- https://community.splunk.com/t5/Security/Splunk-Admin-Password/m-p/326020