简体   繁体   English

Filebeat 不尝试连接到 backoff/Logstash 并且没有日志发送到 Logstash

[英]Filebeat doesn't try to connect to backoff/Logstash and no logs sent to Logstash

I run filebeat on Mac OSX along with sebp/elk docker image .我在 Mac OSX 上运行 filebeat 以及sebp/elk docker image When I tried the same on a windows machine with the exact same configuration, Logs got shipped from Filebeat to Logstash seamlessly.当我在具有完全相同配置的 windows 机器上尝试相同的配置时,日志从 Filebeat 无缝传送到 Logstash。 On windows, when I run filebeat before initiating the elk docker container, it keeps retrying to establish a connection with Logstash.在 windows 上,当我在启动 elk docker 容器之前运行 filebeat 时,它会不断重试与 Logstash 建立连接。 On Mac, filebeat is initiating any connection.在 Mac 上,filebeat 正在启动任何连接。 It doesn't even attempt to connect to backoff/Logstash running on port 5044.它甚至不会尝试连接到在端口 5044 上运行的退避/Logstash。

I'm sure I'm missing something really small, can't get it though.I spent almost 2 days on this with no luck.我确定我错过了一些非常小的东西,但无法得到它。我花了将近 2 天的时间没有运气。

Did you try executing the debug mode for filbeat to check if:您是否尝试执行 filbeat 的调试模式以检查是否:

  1. There is any event generated on MacOS device. MacOS 设备上生成了任何事件。
  2. The log path defined are correct and are being read by the filebeat agent successfuly.定义的日志路径是正确的,并且正在被 filebeat 代理成功读取。

Execute it from the filebeat directory从filebeat目录执行

sudo./filebeat -e -c filebeat.yml -d "*" sudo./filebeat -e -c filebeat.yml -d "*"

Check here for more details 在这里查看更多详情

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM