Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to README regarding elasticsearch-reset-password #956

Open
jorgegomzar opened this issue Jan 22, 2024 · 4 comments
Open

Add note to README regarding elasticsearch-reset-password #956

jorgegomzar opened this issue Jan 22, 2024 · 4 comments
Labels
input wanted Complementary information required from the author

Comments

@jorgegomzar
Copy link

I couldn't reset the password for the logstash user, apparently it is not using the right URL for elastic.

Running this works:

docker-compose exec elasticsearch bin/elasticsearch-reset-password --batch --user elastic --url http://localhost:9200
@antoineco
Copy link
Collaborator

What was the error? Maybe you tried the command before Elasticsearch was ready to service requests?

localhost:9200 is the default already. We run this command in automated tests to initialize passwords, they would start failing if it wasn't the case.

@jorgegomzar
Copy link
Author

Hi! I was getting this same error as the screenshot attached (now I am setting up filebeat)
imagen

Checking logstash container logs I saw "elasticsearch" was not accessible, but kibana was already set up (was able to set up password and log in).

Tried several times with no luck, but adding --url http://localhost:9200 actually made the script run against elastic's API

@antoineco
Copy link
Collaborator

Did you perform any change to the elasticsearch.yml file? The URL is determined based on the content of this file.

If you pass the -v flag to your previous command you should be able to see what URL the tool is using.

@jorgegomzar
Copy link
Author

Hi, no, I did not change anything. Elasticsearch had been up for 10 minutes when I tried to change the passwd.

@antoineco antoineco added the input wanted Complementary information required from the author label Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input wanted Complementary information required from the author
Projects
None yet
Development

No branches or pull requests

2 participants