WSO2 ESB日志太大,怎么设置? [英] WSO2 ESB log is too big, how to set?

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

问题描述

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

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?

推荐答案

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

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" />

详情请参考[1]

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

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

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