ELK配置踩坑指南(持续更新)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhalang8324/article/details/82993066

为什么要去认识了解ELK,这里先买个坑,后面有空了再来写

2018/10/10

      ELK首先,切记不要直接用yum或者apt安装,这是第一个坑。虽然这里很方便,但是受限于各源的不同,导致ELK各版本老旧,很容易出其他问题。比如一开始我用yum安装的kibana(阿里云的源),版本过低,很多功能没有。然后logstash直接没有grok插件,要自己装。这也很麻烦,所以推荐做法是官网下载,解压安装。启动可以用nohup XXXX &启动。

      其次,我这边下载的没有安装elasticsearch-head插件,有需要的可以自行安装。安装的时候wget安装失败,用plugin-install安装失败,最后在csdn找到解决办法:

       git上有说明,按照步骤来就行 https://github.com/mobz/elasticsearch-head

  • git clone git://github.com/mobz/elasticsearch-head.git
  • cd elasticsearch-head
  • npm install
  • npm run start
  • open http://127.0.0.1:9100

     如果npm不能用(command not found)

     sudo yum install epel-release

     sudo yum install nodejs

     如果一直连接不上,ealsticsearch.yum添加:

     http.cors.enabled: true
     http.cors.allow-origin: "*"

     重启es和head

     另外,关于linux中关闭kibana,可以使用ps -ef | grep node命令找到kibana进程,进行kill。head插件是用npm运行的,所以是ps -ef |grep npm,kill即可。

     

     

     

猜你喜欢

转载自blog.csdn.net/zhalang8324/article/details/82993066