WSO2 ESB log is too big, how to set?

前端 未结 2 538
误落风尘
误落风尘 2021-01-13 16:06

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 fil

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 16:51

    You can configure logging in ESB_HOME/repository/conf/log4j.properties file.

    Add following configurations in the log4j.appender.CARBON_LOGFILE=org.apache.log4j.RollingFileAppendersection.

    log4j.appender.CARBON_LOGFILE.MaxFileSize=20MB
    log4j.appender.CARBON_LOGFILE.MaxBackupIndex=1000
    

    So this will ensure total 2MB * 1000 will be used. i. e first 1000 entries of 2MB chunks will be retained

提交回复
热议问题