日志不会启动。错误:"Could not start TCP server: Address in use"



Logstash 不会启动。它说:

 :message=>"Could not start TCP server: Address in use", :host=>"0.0.0.0", :port=>1514, :level=>:error}The error reported is: n  Address already in use - bind - Address already in use"}

在 logstash 配置文件中,未指定端口 1514。当 logstash 停止时,没有服务侦听此端口。当我启动 logstash 时,虽然我没有在配置文件中指定此端口,但它开始侦听此端口。如果我将此端口放在 logstash 配置文件中并启动 logstash,它会给我该地址正在使用的错误。我需要使用 tcp/1514 端口,因为我的所有 esxi 虚拟机管理程序都配置为将日志发送到此端口。

为什么当我开始 logstash 时,它开始侦听这个端口,尽管我在配置文件中没有这个端口?

在配置文件中使用此端口成功启动日志存储服务,我该怎么做?

问题是logstash使用了两个配置文件。

root@srv-syslog:~# locate central.conf
/etc/logstash/conf.d/central.conf
/etc/logstash/conf.d/central.conf.save

我删除了第二个,现在一切都很好。

相关内容

最新更新