elasticsearch安裝search-guard插件
./bin/elasticsearch-plugin install com.floragunn:search-guard-6:6.3.2-24.0
進行demo模式安裝,依次輸入三個 Y
cd ./plugins/search-guard-6/tools
bash install_demo_configuration.sh
重啟es集群,驗證,默認用戶名密碼均為admin
https://192.168.180.128:9201/_searchguard/authinfo
kibana安裝search-guard插件
文件路徑:https://search.maven.org/maven2/com/floragunn/search-guard-kibana-plugin/6.3.2-17/
./kibana-6.3.2-linux-x86_64-2/bin/kibana-plugin install https://search.maven.org/maven2/com/floragunn/search-guard-kibana-plugin/6.3.2-17/search-guard-kibana-plugin-6.3.2-17.zip
修改kibana配置文件
server.port: 5602 server.host: 0.0.0.0 server.name: "knode02" elasticsearch.url: "https://192.168.180.128:9201" elasticsearch.username: "admin" elasticsearch.password: "admin" elasticsearch.ssl.verificationMode: none elasticsearch.requestHeadersWhitelist: [ "Authorization", "sgtenant" ] xpack.monitoring.enabled: false xpack.graph.enabled: false xpack.ml.enabled: false xpack.watcher.enabled: false xpack.security.enabled: false
重啟kibana,驗證即可
參考資料:
