从Java应用程序的不同实例集中日志

发布于 2025-02-13 07:50:01 字数 260 浏览 1 评论 0原文

我需要集中在产品环境中部署在2个不同服务器中的应用程序的2个日志文件。

如果可能的话,我想使用logback而不是logstash,因为我们已经在Java应用程序中支持了它。

我做了一些研究,但是我发现了很多用于生成更多日志文件的解决方案,但不是要结合我已经拥有的日志文件。

我想实现的是这个两个日志文件的合并要么在新的日志文件中或数据库中中,因为这样我需要通过REST服务发送此2个日志的联合。

你能帮我吗? 谢谢

I have a need to centralize the 2 logs file of my application deployed in 2 different server in prod environment.

If possible I would like to use logback and not logstash cause we already support it in the java app.

I did some research but I found lot of solutions for generate more log files but not to unite the ones I already have.

What I would like to achieve is the merge of this 2 logs file either into a new log file or in a database because then I need to send the union of this 2 logs through a REST Service.

Could you help me?
Thanks

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

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

发布评论

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