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

Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...