如何将Tomcat6的catalina.out文件与Logstash + ElasticSearch + Kibana集成? [英] How can I integrate Tomcat6's catalina.out file with Logstash + ElasticSearch + Kibana?

查看:194
本文介绍了如何将Tomcat6的catalina.out文件与Logstash + ElasticSearch + Kibana集成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个集中的日志记录服务器。



我已经基于此iso



成功并严格按照本教程步骤,我有:


  1. 一个具有Logstash + ElasticSearch + Kibana的日志服务器。

  2. 应用程序服务器与Logstash转发器,Tomcat 6和另一个应用程序,其日志正在catalina.out文件中注册。

我的问题是:




  • 现在,为了将catalina.out日志从App Server发送到日志记录服务器的方式使得这些日志在ElasticSearch + Kibana中有正确的结构和查询能力?



请注意,catalina.out不仅仅是一个统一的格式,而且多线Java异常也将被注册。



I已经阅读了关于这个的一些教程,但是我觉得对于像我这样的虚拟人物来说,他们没有得到很好的解释:缺少文件完整路径的示例,适当的文件名,所需的ubuntu命令等等。



提前感谢

解决方案

您也可以直接使用GELF将catalina日志推送到logstash : http://www.paluch.biz/blog/ 105-integration-logstash-with-tomcat-7.html



logstash-gelf不提供访问日志记录阀,用于将访问日志推送到logstash。 / p>

I want to have a centralized logging server.

I have created two Ubuntu 12.04 LTS servers based on this iso.

After successfully and strictly following this tutorial steps, I have:

  1. One Logging Server with Logstash + ElasticSearch + Kibana.
  2. And one Application Server with a Logstash-Forwarder, Tomcat 6 and another app, which logs are being registered in the catalina.out file.

My question is:

  • What 'for-dummies' steps should I follow now in order to send catalina.out logs from the App Server to the Logging Server in such a way that those logs are properly structured and query-able in ElasticSearch + Kibana?

Mind that catalina.out has not just one uniform format, and that multi-line Java exceptions are going to be registered as well.

I have read some tutorials regarding this, but I feel they weren't sufficiently well-explained for a dummy like me: Lacking examples of full paths to files, appropriate file names, required ubuntu commands, and so on.

Thanks in advance!

解决方案

You can push the catalina logs also directly to logstash using GELF: http://www.paluch.biz/blog/105-integrating-logstash-with-tomcat-7.html

logstash-gelf does not provide a access logging valve for pushing access logs to logstash.

这篇关于如何将Tomcat6的catalina.out文件与Logstash + ElasticSearch + Kibana集成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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