简体   繁体   English

日志和ELK堆栈在单独的服务器上,如何显示日志?

[英]Logs and ELK stack on separate servers, how to display the logs?

I have logs on one server and ELK stack -- ElasticSearch, Kibana, Logstash -- on another. 我在一台服务器上有日志,在另一台服务器上有ELK堆栈-ElasticSearch,Kibana,Logstash。 I want to display the logs, which are on the 1st server, in Kibana, which is on the 2nd one. 我想在第二台的Kibana中显示第一台服务器上的日志。

How can I do that? 我怎样才能做到这一点? Is logstash capable of retrieving logs over the internet from a remote server? logstash是否能够从远程服务器通过Internet检索日志?

Your best bet is to use Filebeat on server one and send the logs to the logstash server. 最好的选择是在服务器一上使用Filebeat,然后将日志发送到logstash服务器。

https://www.elastic.co/products/beats/filebeat https://www.elastic.co/products/beats/filebeat

Logstash can't access remote file, you'll have to use a shipper, like beaver, using udp or tcp transport: Logstash无法访问远程文件,您必须使用udp或tcp传输来使用类似beaver的托运人:
Beaver documentation . 海狸文档

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

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