티스토리 뷰
[ElasticSearch] missing authentication credentialsfor REST request
IT공부블로그 2022. 7. 7. 10:34검색엔진 xpack 설정이 걸려있을경우
curl -XGET 'localhost:9200/_cat/indices?pretty'
위 같은 명령어 실행 시
{
"error" : {
"root_cause" : [
{
"type" : "security_exception",
"reason" : "missing authentication credentials for REST request [/_cat/indices?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
}
],
"type" : "security_exception",
"reason" : "missing authentication credentials for REST request [/_cat/indices?pretty]",
"header" : {
"WWW-Authenticate" : "Basic realm=\"security\" charset=\"UTF-8\""
}
},
"status" : 401
}
에러 발생
계정정보를 같이 넘겨주거나
curl -u elastic:test11 'localhost:9200/_cat/indices?pretty'
elasticsearch.yml 파일에
xpack.security.enabled: true
위 부분 주석처리
참조: https://github.com/elasticsearch-dump/elasticsearch-dump/issues/526
Can I use elasticdump backup if es has an account password on x-pack · Issue #526 · elasticsearch-dump/elasticsearch-dump
Can I use elasticdump backup if es has an account password on x-pack
github.com
https://clack2933.tistory.com/10
02. REST API를 사용하기
접속 접속 권한 제한 curl -XGET localhost:9200?pretty 위와 command를 실행 할 경우 아래와 같은 json코드를 볼 수 있다. 이럴 경우 elasticsearch.yml 에 xpack.security.enabled: true 를 주석 처리해줘야 한..
clack2933.tistory.com
Elasticsearch X-Pack 설치 후 서버에서 curl 인증오류 발생대처
엘라스틱서치를 설치 후 Kibana에서 계정설정을 한 후 윈도우에서 Kibana(또는 엘라스틱..) 에서 설정한 아이디/패스워드를 입력했을 때 정상적으로 데이터가 출력되는데 서버(리눅스)에서 curl를 이
lulab.tistory.com