티스토리 뷰

728x90
반응형

검색엔진 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

https://lulab.tistory.com/1

 

Elasticsearch X-Pack 설치 후 서버에서 curl 인증오류 발생대처

엘라스틱서치를 설치 후 Kibana에서 계정설정을 한 후 윈도우에서 Kibana(또는 엘라스틱..) 에서 설정한 아이디/패스워드를 입력했을 때 정상적으로 데이터가 출력되는데 서버(리눅스)에서 curl를 이

lulab.tistory.com

 

728x90
반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함