部署ELK出现dial tcp [::1]:5044: connect: network is unreachable错误

虽然成功构建filebeat镜像并启动容器,但logstash中去没有文件输出;查看以下filebeat的容器日志发现有以下错误出现:

错误
ERR Failed to connect: dial tcp [::1]:5044: connect: network is unreachable
ERR Failed to connect: dial tcp [::1]:5044: connect: network is unreachable
ERR Failed to connect: dial tcp 127.0.0.1:5044: getsockopt: connection refused

方法:
使用docker exec -it 容器ID bash进入filebeat容器找到filebeat.yml修改其中output.logstash 字段下的 hosts: [logstash:5044]修改成hosts: [IP地址:5044]

猜你喜欢

转载自blog.csdn.net/weixin_46329906/article/details/116565570
今日推荐