解决kibana启动时:缺少elasticsearch模板,check elasticsearch template

我安装的是 elsticsearch7.9.2    kibana7.9.2    wazuh 3.13.2   filebeat 3.13.2

在解决了 Kibana server is not ready yet 问题https://blog.csdn.net/Devour_/article/details/112569075)后发现kibana还是不可以正常访问,提示找不到elasticsearch模板

      解决找不到elasticsearch模板的问题,更新 filebeat.yml 和 wazuh-template.json。添加elasticsserch告警模

我的解决步骤:(作为改错记录)

       1、在github的wazuh官方网站上去找对应版本的filebeat.yml 和 wazuh-template.json

               https://raw.githubusercontent.com/wazuh/wazuh/v3.13.2/extensions/filebeat/7.x/filebeat.yml

        https://raw.githubusercontent.com/wazuh/wazuh/v3.13.2/extensions/elasticsearch/7.x/wazuh-template.json

      2、你肯定发现直接点链接不能下载(解决办法)(可能只需要下载wazuh-template.json告警模板即可,这个未测试)

             1)不知道是不是官方的原因,我不能直接wget访问下载,因此需要将对应版本的安装包整个下载下来,并且解压

        

             2)进入这个目录将 extensions/filebeat/7.x/filebeat.yml 和 extensions/elasticsearch/7.x/wazuh-template.json  这两个加粗的文件复制出来

             3)用filebeat.yml文件,替换你安装的filebeat中的/etc/filebeat/filebeat.yml

                      更改权限chmod go+r /etc/filebeat/filebeat.yml

             4)将wazuh-tenplate.json,上传到/etc/filebeat/中即可!

                       更改权限chmod go+r /etc/filebeat/wazuh-template.json

      3、编辑/etc/filebeat/filebeat.yml文件,将output.elasticsearch.h osts: 配置文件中:

         ['http://YOUR_ELASTIC_SERVER_IP:9200']中的“YOUR_ELASTIC_SERVER_IP”修改为ElasticServer的ip地址或者主机名。

     4、启动

         systemctl daemon-reload

         systemctl enable filebeat.service

          systemctl start filebeat.service

 

 补充:若问题还未解决,可以尝试:为filebeat下载Wazuh针对filebeat的模块解决问题。

  1. 下载文件 https://packages.wazuh.com/3.x/filebeat/wazuh-filebeat-0.1.tar.gz(这个官方链接可能失效,有需要可以留言)
  2. 解压并覆盖:tar -xvzf wazuh-filebeat-0.1.tar.gz -C /usr/share/filebeat/module
  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值