xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
엘라스틱 서치 서버 접속 후 비밀번호 설정
자동
/usr/share/elasticsearch/bin/elasticsearch-setup-passwords auto
/usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive
자동 입력 시 화면
설정이 끝났다면 이제 헤더에 인증 정보를 담아 요청(ex. BASIC AUTH)
or
http://아이디:비밀번호@localhost:9200 으로 요청을 보낼 수 있음
elasticsearch.username: "아이디"
elasticsearch.password: "패스워드"
정상적으로 적용된 키바나 보안 설정
output {
elasticsearch {
hosts => ["http://elasticsearch:9200]
user => "아이디"
password => "패스워드"