1. Describe your incident:
I lost my admin password. Graylog is started in docker with persistent data.
2. Describe your environment:
3. What steps have you already taken to try and solve the problem?
i tryed to start graylog docker container in interactive mode (with docker exec) but not found graylog-ctl or vi(vim) nano editor (default user graylog)
4. How can the community help?
How i can reset admin password? Thanks!
Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]
Perhaps these posts.
Don’t be fooled by the naming convention of these posts, I do see commands that would be able to help.
To sum it up, You need to reset the Admin password. This is done only by reconfiguring the Graylog server configuration file. This is where the hashed password is locate.
Graylog comes with a default configuration that works out of the box but you have to set a password for the admin user. Also the web interface needs to know how to connect from your browser to the Graylog API. Both can be done via environment variables.
In this case you can login to Graylog with the user and password admin. Generate your own password with this command:
$ echo -n yourpassword | shasum -a 256
This all can be put in a docker-compose file, like:
command: "elasticsearch -Des.cluster.name='graylog'"
After starting the three containers with docker-compose up open your browser with the URL http://127.0.0.1:9000 and login with admin:some_password
Hope that helps
@gsmith Thank you, very much! I just rehash password and change secret strings in docker-compose file and it works!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.