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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...