搭建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.youkuaiyun.com/weixin_44105991/article/details/91320644
//kibana和Elasticsearch不再一台机器上,同时开会出现无法分配内存的问题
Unable to revive connection: http://localhost:9200/
2.su: Authentication failure问题
第一种情况可能是root密码输入错误造成的,再仔细检查一遍是否输入错误
第二种是刚安装完,没有设置root用户密码导致的
sudo passwd
然后会让你输入当前用户密码
输入完后再输入root用户密码就可以了
3.kibana报错:Unable to revive connection: http://localhost:9200/解决办法
https://blog.youkuaiyun.com/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.youkuaiyun.com/qq_31674359/article/details/80671749
错误原因:使用非 root用户启动ES,而该用户的文件权限不足而被拒绝执行。
解决方法: chown -R 用户名:用户名 文件(目录)名
5.kibana启动报错 server is not ready yet
其实就是没有和Elasticsearch连接到一起
https://blog.youkuaiyun.com/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