Hi,
I recently installed Cribl and today when I tried to log back in I couldn't, I'm locked out! I have CLI access so I was hoping there was a way to reset my password through the CLI?
Thank you!
Solved
Locked out of Stream, how do I reset my password?
Best answer by Ahoura Mortazavi
Hi Jessica,
Thanks for reaching out! You can follow these steps in order to reset your password. You do need to access the leader via the CLI for this to work:
- Navigate to $CRIBL_HOME > local > auth > users.json
- To manually add, change, or restore a password, replace the affected user's
passwdkey-value pair with apasswordkey, in this format:"password":"<newPlaintext>". Cribl Stream will hash all plaintext password(s), identified by thepasswordkey, during the next file reload, and will rename the plaintextpasswordkey. - When looking at your current users.json file, you should see something like:
{"username":"user","first":"Goat","last":"McGoat","disabled":"false", "passwd":"Yrt0MOD1w8OzyMYB8WMcEleOtYESMwZw2qIZyTvueOE"}
- you'd need to modify the final key-value pair to something like:
{"username":"user","first":"Goat","last":"McGoat","disabled":"false", "password":"Str0ngPassword!"}
- Within about a minute after you save the file, Cribl Stream will rename the
passwordkey back topasswd, and will hash its value, re-creating something resembling the original example.
Keep in mind this only works for on-prem deployment and with cloud deployments, you would need to reach out to Cribl support at support@cribl.io
For more info you can also refer to our docs.
linkEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
