本文介绍了WSO2 ESB日志太大,该如何设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WSO2 ESB上进行了性能测试.而且我发现日志太大,无法打开.最大文件为7.20GB.我认为这是一个大问题.我想将每个日志文件设置为小于20MB,并且我想自动删除旧日志.如何设置呢?有人可以帮助我吗?

解决方案

您可以通过编辑位于{CARBON_HOME}/repository/conf/tomcat目录中的catalina-server.xml并在AccessLogValve中添加renameOnRotate来配置http_access_log. >

有关更多详细信息,请参考[1]

[1]- http://sparkletechthoughts.blogspot.com/2013 /07/configure-access-logging-in-wso2.html

I do a performance test on WSO2 ESB. And I found the log is too big that can not open. The biggest file is 7.20GB. I think this is a big problem. I want to set every log file less than 20MB, and I want delete old logs automatic. How to set this? Anyone can help me?

解决方案

You can configure http_access_log by editing the catalina-server.xml which is located {CARBON_HOME}/repository/conf/tomcat directory and add renameOnRotate in the AccessLogValve

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="${carbon.home}/repository/logs"renameOnRotate="true" prefix="http_access_" suffix=".log pattern="combined" />

Please refer [1] for more details

[1] - http://sparkletechthoughts.blogspot.com/2013/07/configure-access-logging-in-wso2.html

这篇关于WSO2 ESB日志太大,该如何设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 00:31