Tomcat logs (localhost_access.log) are not rolling by default
search cancel

Tomcat logs (localhost_access.log) are not rolling by default

book

Article ID: 387486

calendar_today

Updated On:

Products

VMware Telco Cloud Service Assurance

Issue/Introduction

TCSA DM doesn't have functionality to roll the tomcat localhost_access.log, This article gives information on the workaround to achieve the same.

Environment

TCSA DM 2.4

Resolution

To roll the tomcat localhost_access.log automatically, please perform the below changes to server.xml file which is located under this path "<base dir>/SAM/smarts/tomcat/conf/sever.xml"

  • Add following parameters to server.xml in the below mentioned block;
    • maxDays="30"      --   (this can be set as per the requirement)
    • rotatable="true"

  • Restart the tomcat service to confirm the changes take effect:

./sm_service stop <tomcat service name>

./sm_service start <tomcat service name>

 

Additional Information

Reference case - 36104184