如何配置logtash以使用“stdout”作为输入? [英] How can I configure logtash to use "stdout" as input?

查看:188
本文介绍了如何配置logtash以使用“stdout”作为输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下设置:


  1. 4配置为将日志发送到stdout的Docker容器。

  2. 1 Docker容器运行logstash。

现在我要配置logstash来使用4 docker的stdout容器作为输入。我现在不打算使用logstash-forwarder,因为我只是想设置一个非常基本的配置。我可以在稍后的阶段转向转发器。

Now I want to configure logstash to use the "stdout" from the 4 docker containers as input. I am not planning to use logstash-forwarder now since I am just trying to setup a very basic configuration. I might switch to forwarder at a later stage.

任何建议将不胜感激。谢谢!

Any suggestions would be greatly appreciated. Thanks!

推荐答案

我发现这个文章。这个人使用 logspout lib来监听所有容器的stdout,并将其放在logstash中。如果您有其他解决方案,请给我反馈,因为我也在
搜索。

I found this article. This guy use logspout lib for listen stdout from all of your containers and put it to logstash. If you have another solution, please send me feedback, because i am in search too.

这篇关于如何配置logtash以使用“stdout”作为输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆