简体   繁体   English

如何在不使用 filebeats 的情况下将日志记录到 logstash 服务器

[英]how to get logs into logstash server without using filebeats

I have logstash installed in a server which will process logs and publish to elastic search.我在服务器中安装了 logstash,它将处理日志并发布到弹性搜索。 But, is it possible for logstash to pull logs from remote servers (linux) without installing filebeats in those servers.但是,logstash 是否可以从远程服务器(linux)中提取日志,而无需在这些服务器中安装 filebeats。 Or if filebeats can be installed in the same server as logstash and can it fetch the logs?或者,如果 filebeats 可以与 logstash 安装在同一台服务器上,它可以获取日志吗? Please help me if there is any other option as well.如果还有其他选择,请帮助我。

Thanks in advance提前致谢

Neither Logstash nor Filebeat can pull/fetch log files from remote servers, you need to have some tool installed in the remote servers that will ship the logs elsewhere. Logstash 和 Filebeat 都不能从远程服务器中提取/获取日志文件,您需要在远程服务器中安装一些工具,以便将日志发送到其他地方。

Logstash can consume logs from message queue systems like kafka , redis or rabbitmq , for example, but you need that your remote servers send the logs to those systems anyway, so you would need a log shipper on your remote servers.例如,Logstash 可以使用来自消息队列系统(如kafkaredisrabbitmq )的日志,但您需要远程服务器将日志发送到这些系统,因此您需要在远程服务器上安装日志传送器。

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

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