当前位置:网站首页>SearchGuard配置
SearchGuard配置
2022-08-11 05:25:00 【cjx__】
elk安全插件searchguard安装
在es下安装 (es版本6.5.4)
下载插件
<ES directory>/bin/elasticsearch-plugin install -b com.floragunn:search-guard-6:<guard version>进入到searchguard安装目录
cd<ES directory>/plugins/search-guard-/tools运行安装
<ES directory>/install_demo_configuration.sh
生成的文件<ES directory>/config/elasticsearch.yml
Install demo certificates? [y/N] y
Initialize Search Guard? [y/N] y
# 集群配置选y
Enable cluster mode? [y/N] n
验证安装
https://<es ip>:9200 输入admin\admin账号密码访问测试安装
https://<es ip>:9200/_searchguard/authinfo 通过访问显示有关当前登录用户的信息修改默认账号密码
生成hash新密码
sh hash.sh -p chenfh5
修改<ES directory>/plugins/search-guard-6/sgconfig/sg_internal_users.yml分发新配置到es集群
cd<ES directory>/plugins/search-guard-6/tools
./sgadmin.sh -cd ../sgconfig/ -icl -nhnv \
-cacert ../../../config/root-ca.pem \
-cert ../../../config/kirk.pem \
-key ../../../config/kirk-key.pem
kibana 安装SearchGuard (kibana版本6.5.4)
运行安装
<kibana directory>/bin/kibana-plugin install https://search.maven.org/remotecontent?filepath=com/floragunn/search-guard-kibana-plugin/6.5.4-17/search-guard-kibana-plugin-6.5.4-17.zip修改kibana配置
vim<kibana directory>/config/kibana.yml
# 关闭xpack安全认证
xpack.security.enabled: false
#xpack.monitoring.enabled: false
network.host: 0.0.0.0
<kibana directory>/bin/kibana启动报错
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
原因是没有node的browserslist没更新,如果直接更新会报错,只能手动下载包再盖到原安装目录
# 安装npm工具,如果有就不用安装
yum install npm
# 新建目录下载新文件
mkdir <npmdown>
cd <npmdown>
npm intall caniuse-lite browserslist
cd <kibana directory>/node_modules
# 新建目录保存原副本
mv <kibana directory>/node_modules/browserslist <backlib>
mv <kibana directory>/node_modules/caniuse-lite <backlib>
mv <kibana directory>/node_modules/electron-to-chromium <backlib>
mv <kibana directory>/node_modules/node-releases <backlib>
mv <kibana directory>/node_modules/semver <backlib>
cd <npmdown>
mv <npmdown>/* <kibana directory>/kibana-6.5.4-linux-x86_64/node_modules
重新启动/bin/kibana 等待node编译完成
- [error][admin][elasticsearch] Request error, retrying 报错
编辑 kibana.yml
# 关闭xpack安全认证
xpack.security.enabled: false
#xpack.spaces.enabled: false
# 连接
elasticsearch.url: "https://xxx.xxx.xxx.xxx:9200"
- 浏览器打开 https://: 输入admin帐号密码打开管理页面
logstash 配置searchguard
- xxx.conf 加入以下配置
output {
elasticsearch {
user => logstash
password => logstash
ssl => true
ssl_certificate_verification => false
cacert => "<elasticsearch home>/config/spock.pem"
...
}
}
边栏推荐
- Argparse模块 学习
- Diagnostic Log and Trace——dlt的编译和安装
- Maykel Studio - Django Web Application Framework + MySQL Database Third Training
- Generic kernel and userspace Makefiles
- swin-transformer训练自己的数据集<自留>
- umi约定式路由规则修改
- Maykel Studio - Django Web Application Framework + MySQL Database Second Training
- win10 配置tensorflow(GPU) anaconda3 cuda9.0 cudnn for 9.0
- mount命令--挂载出现只读,解决方案
- 目标检测——卷积神经网路基础知识
猜你喜欢
随机推荐
net6 的Web MVC项目中事务功能的应用
网络七层结构(讲人话)
aPaaS和iPaaS的区别
产品版本号是如何确定的
Robust 3D Object Detection in Cold Weather Conditions
CVPR2020: Seeing Through Fog Without Seeing Fog
Maykle Studio - Second Training in HarmonyOS App Development
目标检测学习目录(持续更新)
梅科尔工作室-华为云ModelArts第二次培训
目标检测——Faster R-CNN 之 Fast R-CNN
C语言中switch的嵌套
C语言的编译
梅科尔工作室-HarmonyOS应用开发的第二次培训
The selection points you need to know about the helmet identification system
CMT2380F32模块开发8-Base Timer例程
mount命令--挂载出现只读,解决方案
net6的Web MVC项目实现限流功能
梅科尔工作室-DjangoWeb 应用框架+MySQL数据库第四次培训
Toward a Unified Model
Promise.race学习(判断多个promise对象执行最快的一个)









