Installation

Splunk admin user changes from version 7->8

gauravmsharma
Path Finder

Will upgarding my splunk installation from version 7 to 8 it seems like the default admin user name and default password does not exsist anymore. Below is the code which i use:

namecheck if password change is required
    command/opt/splunk/bin/splunk login -auth admin:changeme
    registerlogin_result
    ignore_errorstrue

  - namechange instance password
    command/opt/splunk/bin/splunk edit user admin -role admin -auth admin:changeme -password {{ admin_password }}
    whenlogin_result is succeeded
 
The code above while running gives an error 
"msg": "non-zero return code", "rc": 24, "start": "2020-09-03 13:06:30.914377", "stderr": "No users exist. Please set up a user.", "stderr_lines": ["No users exist. Please set up a user."]
 
Does anyone have faced the same issue?
Labels (1)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

That is documented change. You must add user and password before you start splunk or generate it when it starts first time.

In ansible it’s easy to create this user-seed.conf with ini_file module before you start splunk first time.

r. Ismo

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

That is documented change. You must add user and password before you start splunk or generate it when it starts first time.

In ansible it’s easy to create this user-seed.conf with ini_file module before you start splunk first time.

r. Ismo

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...