How to delete Tomcat Access Log after n days?

后端 未结 6 1723
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 19:48

I only would like to keep the Access Logs of the last n days created by Tomcat Access Log Valve. http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access%20Log%20Val

6条回答
  •  花落未央
    2021-01-03 20:52

    run in terminal:

    locate RELEASE-NOTES | egrep 'tomcat|apache' | xargs grep "Apache Tomcat Version"
    

提交回复
热议问题