将记录的信息从一台计算机重定向到另一台计算机的进程?

发布于 2025-01-12 15:56:33 字数 335 浏览 1 评论 0原文

我的设置:我有一台计算机运行应用程序 foo,并使用 rsyslog 将信息记录到另一台远程计算机上的文件中。远程计算机正在运行不同的应用程序 barbar 读取它收到的记录文件并使用这些信息进行一些处理,但是,这很慢。

我想要做什么:我想将foo日志文件中的信息直接通过管道传输到进程bar中。我想理论上我可以改变 foo 的源代码来支持类似的东西,甚至绕过 rsyslog 或在本地写入文件,但它是一个大型企业级软件,将是最后的手段。

My setup: I have one computer running an application, foo, and logging information using rsyslog to a file on another remote machine. The remote machine is running a different application, bar. bar reads the logged files it has received and does some processing with this information, however, this is slow.

What I'm trying to do: I would like to pipe the information from foo's log file into the process bar directly. I suppose I theoretically could alter foo's source code to support something like this to even bypass rsyslog or writing to a file locally, but it is a massive enterprise-level software and would be a last resort.

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

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

发布评论

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