如何从在不同的计算机(EC2)上运行的多个FileBeat接收日志到一个LogStash实例?

发布于 2025-02-04 06:00:08 字数 353 浏览 3 评论 0原文

我有2个在不同的计算机上运行的文件beat(ex:a& b),并且还配置了FileBeat来发送Logstash机器,但是LogStash即使我添加了这些机器的私有IP,也没有接收数据。

因此,我有2个logstash .conf文件,可以从2个不同的文件beat接收。

我的conf文件看起来像这样 - >

a.conf

输入{ 打{ 港口:”” 主持人:“私有IP-M1” } }

b.conf

输入{ 打{ 港口:”” 主持人:“私有IP-M2” } }

我运行logstash后无法连接。它说错误:无法分配请求的地址。

谁能告诉我还有其他方法吗?

i have 2 filebeats running on different machine(Ex: A & B) and filebeat is also configured to send logstash machine but logstash is not receiving the data even though I have added the private IP of those machines.

so i have 2 logstash .conf file to receive from 2 different filebeats.

My conf file looks like this ->

A.conf

input{
beat{
port:""
host:"private-ip-m1"
}
}

B.conf

input{
beat{
port:""
host:"private-ip-m2"
}
}

after I run logstash it is unable to connect. it says Error: Cannot assign requested address.

Can anyone tell me is there any other way to this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文