ELK系统的搭建

 

搭建elk中所遇到的问题

1.OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ca660000, 899284992, 0) failed; error='Cannot allocate memory

内存问题 free -m查看内存 和交换空间swap, 安装交换空间,增大交换空间

https://blog.csdn.net/weixin_44105991/article/details/91320644

//kibana和Elasticsearch不再一台机器上,同时开会出现无法分配内存的问题

 Unable to revive connection: http://localhost:9200/

2.su: Authentication failure问题

https://blog.csdn.net/renrenxu/article/details/82725659?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param

第一种情况可能是root密码输入错误造成的,再仔细检查一遍是否输入错误

第二种是刚安装完,没有设置root用户密码导致的

sudo passwd

然后会让你输入当前用户密码

输入完后再输入root用户密码就可以了

3.kibana报错:Unable to revive connection: http://localhost:9200/解决办法

https://blog.csdn.net/qq_42127387/article/details/106685699

>先打开Elasticsearch,再打开kibana

>kibana.yml的设置

server.host: “0.0.0.0”

elasticsearch.hosts: “http://elasticsearch:9200”

>docker inspect elasticsearch,查看es容器内部的ip地址,如172.17.0.3;然后 把 kibana容器内的 kibana.yml配置改成 elasticsearch.hosts: “http://172.17.0.3:9200”

4.Elasticsaerch启动报错:Exception in thread "main" java.nio.file.AccessDeniedException:

https://blog.csdn.net/qq_31674359/article/details/80671749

错误原因:使用非 root用户启动ES,而该用户的文件权限不足而被拒绝执行。

解决方法: chown -R 用户名:用户名  文件(目录)名

5.kibana启动报错  server is not ready yet

其实就是没有和Elasticsearch连接到一起

https://blog.csdn.net/fv8023/article/details/96427702

6.[ERROR][org.logstash.Logstash    ] java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

[logstash.runner          ] An unexpected error occurred! {:error=>#<ArgumentError: Path "/usr/local/logstash/data" must be a writable directory. It is not writable.>,

没有权限,文件不能写入,sudo 执行就好了

 

 

 

在阿里云上搭建elk日志系统

安装步骤

https://bbs.ichunqiu.com/thread-19741-1-2.html

1.登录后安装Java环境

https://www.cnblogs.com/wjup/p/11041274.html

2.安装Elasticsearch

 

所遇到的问题

1.在安装logstash的时候报错

elk-alden is not in the sudoers file.  This incident will be reported.

https://www.cnblogs.com/zox2011/archive/2013/05/28/3103824.html

2.启动Elasticsearch服务时表示内存不够

报错

There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocatio

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值