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,验证即可
参考资料: