curl: (7) Failed connect to x.x.x.x:9200; Connection refused
把elasticsearch.yml中network.host和http.port前面的#删了

[FATAL][logstash.runner ] Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the “path.data” setting.
方法1:检查/logstash/data是否为空,不为空:删除文件夹中的以下三个文件,再用./logstash -f ../config/logstash.conf &语句启动logstash并指定配置文件。

logstash.conf的配置可以查看其他教程。因为如果首次安装使用的是错误的配置文件,将会生成错误的这三个文件,且之后加载正确的配置文件后也不会更新,只有删除之后重新启动才可以正常启动。
检查logstash是否能够正常通信可以使用
sh logstash -e 'input { stdin {} } output { stdout {} }'语句,来自[这个链接]里面的方法(https://cloud.tencent.com/developer/article/1775667).
测试完后使用CTRL+C退出。
2.检查/logstash/data 下是否有.lock文件,如果有,删除.lock文件(我用的是WinScp,所以可以直接查看服务器上的文件,没有这个工具的可以用 ls 命令)
Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: Error creating Kibana client: fail to get the Kibana version: HTTP GET request to /api/status fails: . Response: {“statusCode”:404,“error”:“Not Found”,“message”:“Not Found”}.
以后台运行的方式启动kibana./kibana &后再启动beats组件(包括filebeats、packetbeats、metricbeats)。
因为启动beats组件时导入了kibana的部分组件,因此beats要依托于kibana运行,在启动beats时要保证kibana处于运行状态,因此以后台运行的方式启动kibana。如果不加上&,在执行下一条语句时就停止了kibana进程,就会导致beats组件启动失败。
本文档详细介绍了在遇到Elasticsearch连接拒绝、Logstash无法启动以及Kibana通信错误等问题时的解决步骤。首先,解决Elasticsearch连接问题,需要检查并修改elasticsearch.yml的配置。对于Logstash,若首次配置错误导致的数据残留,需删除特定文件后重新启动。测试Logstash通信正常性,可使用命令行工具。确保Kibana无.lock文件,并以后台方式启动,以支持Beats组件的正常运行。最后,排查Kibana与Beats组件的依赖关系,确保服务之间的正确交互。
1万+

被折叠的 条评论
为什么被折叠?



