To control or restrict the number of AppServer.Service Log files getting created
search cancel

To control or restrict the number of AppServer.Service Log files getting created

book

Article ID: 162310

calendar_today

Updated On:

Products

Control Compliance Suite Windows

Issue/Introduction

To control or restrict the number of AppServer.Service Log files getting created at the following location on the Symantec Control Compliance Suite (SCCS) Application Server. Install Dir>:\ProgramData\Symantec.CSM\Logs\AppServer

Resolution

This can be done via some modifications in the AppserverService.exe.config file on the CCS Application Server. Perform the following steps.

  1. Close the Control Compliance Suite (CCS) Console.
  2. Stop the Symantec Application Server Service.
  3. Go to the following location-<Install Dir>:\Program Files (x86)\Symantec\CCS\Reporting and Analytics\Application Server
  4. Here, check for the AppserverService.exe.config file and open in it Notepad/Wordpad.
    • Note take a backup of AppserverService.exe.config file before modifying it.
  5. Now, go to the <logging> section and at the end add the following two keys-
    • <add key="Log.FileLogger.MaxHistoricalLogfileCount" value="11" />  
    • <add key="Log.FileLogger.MaxLogfileSize_MB" value="10" />
  6. This will create 11 App Server Log files of 10 MB each at the following location as and when they are generated-
    • C:\ProgramData\Symantec.CSM\Logs\AppServer
  7. Now, as soon as the 12th Log file will get created the oldest one will be automatically purged.
    • So it will follow the Last-In First-Out (LIFO) algorithm.
    • Note-You can change the values in the above keys as per your requirement.
  8. Now, save the AppserverService.exe.config file and restart the Application Server Service.