Security

clean all index command will erase admin password?

hjwang
Contributor

i found when i do clean all -f command, then the admin password i set will not work and back to original setting "changeme". Is this normal? the version is 4.1.4. Thanks

Tags (1)
1 Solution

hexx
Splunk Employee
Splunk Employee

Yes, if you use the "clean all" command you will lose passwords for locally stored users such as the "admin" user, who will see his password reset to the default value.

To avoid this, you can selectively clean the eventdata from specific indexes :

$SPLUNK_HOME/bin/splunk clean eventdata -index myindex

View solution in original post

hexx
Splunk Employee
Splunk Employee

Yes, if you use the "clean all" command you will lose passwords for locally stored users such as the "admin" user, who will see his password reset to the default value.

To avoid this, you can selectively clean the eventdata from specific indexes :

$SPLUNK_HOME/bin/splunk clean eventdata -index myindex

gkanapathy
Splunk Employee
Splunk Employee

You can clean all data from all indexes by omitting the -index parameter. The difference between this and clean all is simply that the passwords are reset and local internal log files are deleted

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...