当前位置:网站首页>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"
...
}
}
边栏推荐
- Asp doNet Mvc4绑定js脚本用法
- The selection points you need to know about the helmet identification system
- Realize data exchange between kernel and userspace through character device virtual file system (passed based on kernel 5.8 test)
- 关于接口响应内容的解码
- STM32F407-浅~~析UART异步通信&USART_Init函数入口参数
- 目标检测思维导图
- Introduction of safety helmet wearing recognition system
- EMQX企业版试用笔记
- promise.all 学习(多个promise对象回调)
- CMT2380F32模块开发9-可编程计数阵列 PCA例程
猜你喜欢
小程序技术原理分析
Kotlin 增量编译的新方式 | 技术解析
梅科尔工作室-Pr第二次培训笔记(基本剪辑操作和导出)
Severe Weather 3D Object Detection Dataset Collection
STM32学习笔记(白话文理解版)—小灯的点亮、闪烁、呼吸
梅科尔工作室-HarmonyOS应用开发第三次培训
stm32-WS2812 PWM+DMA(自己写库函数)
Diagnostic Log and Trace——为应用程序和上下文设置日志级别的方法
【调试记录1】提高MC3172浮点运算能力,IQmath库的获取与导入使用教程
目标检测——Faster-RCNN 之 RCNN
随机推荐
Maykle Studio - HarmonyOS Application Development Third Training
vscode插件开发——代码提示、代码补全、代码分析
MSP430学习总结——时钟UCS
stm32-WS2812 PWM+DMA(自己写库函数)
弱监督语义分割CLIMS(CVPR2022)
电商机会:私域
CMT2380F32模块开发0-总览
Node-3.构建Web应用(一)
The selection points you need to know about the helmet identification system
STM32学习笔记(白话文理解版)—小灯的点亮、闪烁、呼吸
STM32学习总结(二)——GPIO
华为云IOT平台设备获取api调用笔记
Safety helmet identification system - escort for safe production
CNN-based Point Cloud De-Noising
Toward a Unified Model
目标检测——LeNet
需求文档(PRD)撰写指南
STM32F407-浅~~析UART异步通信&USART_Init函数入口参数
Waymo dataset usage introduction (waymo-open-dataset)
CKEditor富文本编辑器工具栏自定义笔记