Reputation: 385
What's is the default username and password for Elasticsearch 7.8.0? It's asking this on 9200 port. Tried these (username pass):
OS: Windows 10 x64, installed ES with MSI installer from its website.
yml file:
bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: LAPTOP-1C4GVFSU
path.data: C:\ProgramData\Elastic\Elasticsearch\data
path.logs: C:\ProgramData\Elastic\Elasticsearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: true
Upvotes: 4
Views: 17032
Reputation: 3
getting this error on disabling xpack.security.enabled = false and got an error like this:
SSL connection to https://10.110.45.178:9200/_security/_authenticate?pretty failed: No subject alternative names matching IP address 10.110.45.178 found Please check the elasticsearch SSL settings under xpack.security.http.ssl.
Upvotes: 0
Reputation: 714
If trying locally and want to run without entering default username and password try disabling it by changing below config line under file config/elasticsearch.yml
xpack.security.enabled: false
Upvotes: 0
Reputation: 489
try the following command
bin/elasticsearch-reset-password -u elastic
it generates new password for user "elastic"
Upvotes: 3
Reputation: 1045
Check /etc/nginx/
for nginx.con
files and nginx passwd
file.
ElasticSearch is using simple Nginx passwd file and basic authentication for default instance.
Upvotes: 0
Reputation: 385
Somehow default username password isn't working. I had to set the password on CMD by
bin/elasticsearch-setup-passwords interactive
bin/elasticsearch-setup-passwords auto
The interactive
parameter prompts new password for the users, whereas auto
generates them for you.
Upvotes: 5
Reputation: 16172
Username is elastic
and Password is password
./gradlew :run
, ES starts building and running.Once the service has started, run this curl command from another window :
curl -u elastic:password localhost:9200
After which add the username and password as mentioned above. To know more about this refer CONTRIBUTING.md
xpack.security.enabled
setting to the ES_PATH_CONF/elasticsearch.yml
file.After which if you try to hit localhost:9200
, then it will ask for username and password (as you have enabled security feature). But since you have not set up username and password, so it will throw security_exception
(when incorrect username and password are entered).
So, for that, run bin/elasticsearch-setup-passwords interactive
, and set the username and password.
Refer to this documentation for Setting built-in user and password
Upvotes: 1