我在哪里可以找到log4j服务器?

时间:2021-10-01 15:05:15

I would like to centralize different log4j logs to a server. where can I find one ?

我想将不同的log4j日志集中到服务器。哪里可以找到一个?

7 个解决方案

#1


Just my two cents,

只是我的两分钱,

1) I would advise against the JDBC appender for production environments as it can lead to some performance problems when buffers start filling up.

1)我建议不要使用生产环境的JDBC appender,因为当缓冲区开始填满时,它会导致一些性能问题。

2) I think a better approach would be to use an application that can monitor log files remotely over ssh etc. There are some about, sorry cant remember their names.

2)我认为更好的方法是使用一个可以通过ssh等远程监控日志文件的应用程序。有一些关于,抱歉不记得他们的名字。

Remember log4j is highly performant but it is synchronous so if you do decided to publish log events to a server take into account latency / transient network problems etc.

记住log4j是高性能的,但它是同步的,所以如果你决定将日志事件发布到服务器,请考虑延迟/瞬态网络问题等。

Karl

#2


Try logFaces, it's a log server, aggregator and viewer built on top of Apache logging services.

尝试logFaces,它是一个基于Apache日志服务构建的日志服务器,聚合器和查看器。

Disclosure: I am the author of this product.

披露:我是该产品的作者。

#3


I would suggest using the SyslogAppender and grabbing an open source implementation of a syslog daemon if running on Windows. Unix/Linux/etc comes with native support for Syslog.

如果在Windows上运行,我建议使用SyslogAppender并获取syslog守护程序的开源实现。 Unix / Linux /等对Syslog提供原生支持。

#4


Log4j can be directed to any output stream including a Socket connected to another computer. You still need to write a small application that receives the log4j data and writes it to a log file.

Log4j可以定向到任何输出流,包括连接到另一台计算机的Socket。您仍然需要编写一个接收log4j数据的小应用程序并将其写入日志文件。

#5


yes, using socketappender to log to the remote host, but I can't believe there is not already an efficient receiver I could use instead of write it.

是的,使用socketappender登录到远程主机,但我不敢相信还没有一个有效的接收器我可以使用而不是写它。

thanx

#6


My two cents ...

我的两分钱......

Are you looking for a gui application (e.g. for debugging)?

你在寻找一个gui应用程序(例如用于调试)吗?

Are you looking for a centralized archive (e.g. for production system administration)?

您在寻找集中存档(例如,用于生产系统管理)吗?

  • You could use the jdbc appender and store all you log on a db.
  • 您可以使用jdbc appender并将所有登录存储在db上。

Are you looking for library (e.g. for some integration purpose)?

您在寻找图书馆(例如用于某些整合目的)吗?

LLP, Andrea

#7


You can try Splunk (www.splunk.com). The free version can let you log and index up to 500MG a day. We have a single server deployed and have both log4net (.net version of log4j) and NLog both logging to it from multiple machines. You can also get splunk to monitor other logs on various machines so you can quicky identify what changes just before your application started to throw errors.

您可以尝试Splunk(www.splunk.com)。免费版本可让您每天记录和索引最高500MG。我们部署了一台服务器,并且log4net(.net版本的log4j)和NLog都从多台机器登录到它。您还可以使用splunk监视各种计算机上的其他日志,以便在应用程序开始出现错误之前快速确定哪些更改。

#1


Just my two cents,

只是我的两分钱,

1) I would advise against the JDBC appender for production environments as it can lead to some performance problems when buffers start filling up.

1)我建议不要使用生产环境的JDBC appender,因为当缓冲区开始填满时,它会导致一些性能问题。

2) I think a better approach would be to use an application that can monitor log files remotely over ssh etc. There are some about, sorry cant remember their names.

2)我认为更好的方法是使用一个可以通过ssh等远程监控日志文件的应用程序。有一些关于,抱歉不记得他们的名字。

Remember log4j is highly performant but it is synchronous so if you do decided to publish log events to a server take into account latency / transient network problems etc.

记住log4j是高性能的,但它是同步的,所以如果你决定将日志事件发布到服务器,请考虑延迟/瞬态网络问题等。

Karl

#2


Try logFaces, it's a log server, aggregator and viewer built on top of Apache logging services.

尝试logFaces,它是一个基于Apache日志服务构建的日志服务器,聚合器和查看器。

Disclosure: I am the author of this product.

披露:我是该产品的作者。

#3


I would suggest using the SyslogAppender and grabbing an open source implementation of a syslog daemon if running on Windows. Unix/Linux/etc comes with native support for Syslog.

如果在Windows上运行,我建议使用SyslogAppender并获取syslog守护程序的开源实现。 Unix / Linux /等对Syslog提供原生支持。

#4


Log4j can be directed to any output stream including a Socket connected to another computer. You still need to write a small application that receives the log4j data and writes it to a log file.

Log4j可以定向到任何输出流,包括连接到另一台计算机的Socket。您仍然需要编写一个接收log4j数据的小应用程序并将其写入日志文件。

#5


yes, using socketappender to log to the remote host, but I can't believe there is not already an efficient receiver I could use instead of write it.

是的,使用socketappender登录到远程主机,但我不敢相信还没有一个有效的接收器我可以使用而不是写它。

thanx

#6


My two cents ...

我的两分钱......

Are you looking for a gui application (e.g. for debugging)?

你在寻找一个gui应用程序(例如用于调试)吗?

Are you looking for a centralized archive (e.g. for production system administration)?

您在寻找集中存档(例如,用于生产系统管理)吗?

  • You could use the jdbc appender and store all you log on a db.
  • 您可以使用jdbc appender并将所有登录存储在db上。

Are you looking for library (e.g. for some integration purpose)?

您在寻找图书馆(例如用于某些整合目的)吗?

LLP, Andrea

#7


You can try Splunk (www.splunk.com). The free version can let you log and index up to 500MG a day. We have a single server deployed and have both log4net (.net version of log4j) and NLog both logging to it from multiple machines. You can also get splunk to monitor other logs on various machines so you can quicky identify what changes just before your application started to throw errors.

您可以尝试Splunk(www.splunk.com)。免费版本可让您每天记录和索引最高500MG。我们部署了一台服务器,并且log4net(.net版本的log4j)和NLog都从多台机器登录到它。您还可以使用splunk监视各种计算机上的其他日志,以便在应用程序开始出现错误之前快速确定哪些更改。