Need validation of localhost:9200

help! when i curl localhost:9200 need validation
i user /usr/share/elasticsearch/bin/elasticsearch-keystore create ==>a keystore.seed
i don't load the corresponding configuration to elasticsearch.yml
i don't know how to do it,thanks


when i "curl -i localhost:9200"
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="security" charset="UTF-8"
content-type: application/json; charset=UTF-8
content-length: 369

{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication token for REST 
request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-
8\""}}],"type":"security_exception","reason":"missing authentication token for REST request 
[/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\"

Probably because you installed x-pack?

Did you read the documentation about it? https://www.elastic.co/guide/en/x-pack/current/xpack-introduction.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.