ELK安装问题

1、安装es时,curl http://localhost:9200或者 curl http://127.0.0.1:9200能成功,但是 curl http://218.197.10.32:9200不能成功,用其他主机的浏览器输入访问也不能成功

      因为  network.host: 192.168.10.32前面的#号没有去掉,被注释了,没有生效。还有一种解决办法: network.host设置成0.0.0.0,表示任何人都可以访问。

2、在配置kibana时,elasticsearch.url: "http://192.168.10.32:9200" ,键值对之间的:后需要有一个空格,否则会报错。

3、es异常关闭时,再次启动需要删掉data/nodes目录

4、在配置kibana时,elasticsearch.url过时了,要使用elasticsearch.hosts

5、

无法访问此网站

192.168.10.42 拒绝了我们的连接请求。

请试试以下办法:

  • 检查网络连接
  • 检查代理服务器和防火墙

当出现这种情况时,可能是程序没有配置IP地址192.168.10.42,而默认地址是localhost。或者是主机防火墙没有关闭

 

6、Exception in thread "main" 2017-11-10 06:29:49,106 main ERROR No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show Log4j2 internal initialization logging.ElasticsearchParseException[malformed, expected settings to start with 'object', instead was [VALUE_STRING]]

解决:请尽量保持冒号前面没空格,后面一个空格,不要用tab键

7、 [no_shard_available_action_exception] No shard available    

      Unable to fetch data from kql collector

8、为了匹配集群,需要将设置为discovery.zen.ping.unicast.hosts: ["master", "slave"],即是主机名(或者是其IP地址)的列表

9、配置kibana,需要配置server.host: 192.168.10.42,即kibana server 的主机地址,和

elasticsearch.hosts: ["http://192.168.10.42:9200", "http://192.168.10.32:9200"],即es集群,注意这里用ip地址而不是主机名

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值