Size-based Log Rotation (Default)

About this task

To delete logs when log rotation is size-based, follow the steps in the topics on this page.

Delete Command Central Logs

About this task

With the size-based log rotation, you must locate the log files on the file system and delete them as follows:

Procedure

  1. To stop the CCE instance:
    • In the Command Central web user interface, click CCE . On the Overview tab, click Lifecycle Actions Lifecycle Actionsand select Stop.
    • In the CLI, run the sagcc exec lifecycle command.
  2. Locate the log files you want to delete.
    • In IBMwebMethods_directory \profiles\CCE\logs
      Tip: In the Command Central web user interface, click CCE and go to the Logs tab. Moving the mouse pointer over a log alias shows the location of the log on the file system.
    • After migrating an environment, log files are also located in IBMwebMethods_directory \install\logs
    • Check the logging configuration in IBMwebMethods_directory \profiles\CCE\configuration\logging\log_config.xml
      Tip: In the Command Central web user interface, click CCE and go to Configuration > Java Service Wrapper.
    If the logging configuration includes custom log appenders, check the locations of the log appender files.
  3. Delete the log files.

Delete Platform Manager Logs

About this task

With the size-based log rotation, you must locate the log files on the file system and delete them as follows:

Procedure

  1. To stop the SPM instance, from the command prompt:
    1. Change directory to IBMwebMethods_directory \profiles\bin
    2. Run shutdown.bat|sh
  2. Locate the log files you want to delete.
    • In IBMwebMethods_directory \profiles\SPM\logs
      Tip: In the Command Central web user interface, click SPM and go to the Logs tab. Moving the mouse pointer over a log alias shows the location of the log on the file system.
    • After migrating an environment, log files are also located in IBMwebMethods_directory \install\logs
    • Check the logging configuration in IBMwebMethods_directory \profiles\SPM\configuration\logging\log_config.xml
      Tip: In the Command Central web user interface, click SPM and go to Configuration > Java Service Wrapper.
    If the logging configuration includes custom log appenders, check the locations of the log appender files.
  3. Delete the log files.