Show TOC

Procedure documentationConfiguring Log Files Archiving Locate this document in the navigation structure

 

Use this procedure to configure automatic archiving of AS Java log files.

Logs are written into five files, each file with a maximum size of 10 MB. When the fifth file is completed, the new logs start overwriting the old log files.

If you enable the archiving process, the set of five full files is converted into a ZIP file and stored as an archive on the file system. After the ZIP file is done, the new logs keep on overwriting the old log files.

Caution Caution

In several countries, the backup of security logs is enforced by law. Therefore, you must perform regular backups and keep all of your security log files.

End of the caution.

Prerequisites

Start the Config Tool by double clicking the configtool script file in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.

Procedure

  1. Choose   cluster-data   <template name>   managers   LogManager.  

  2. From the list of properties, select ArchiveOldLogFiles.

    By default, log archiving is disabled and the value is set to OFF.

  3. To activate the log files archiving, in Custom value field, set the value as ON.

  4. Choose Set Custom Value to apply the new value.

  5. To change the current log archive directory, choose the ArchivesDirectory property.

    The default directory where archives of logs are stored is: <Drive>:\usr\sap\<SID>\JC<Instance number>\j2ee\cluster\<server>\log\archive.

  6. In Custom Value field, enter the name of the new directory.

  7. Choose Set Custom Value.

  8. If you want only certain log files to be archived, choose the ArchivedFileNames property.

    The default value for this property is empty. This means that all log files will be archived.

  9. In the Custom Value field, enter the names of the files to be archived. The log file names have to be separated by semicolon (;).

  10. Choose Set Custom Value.

  11. Choose Apply Changes (Apply Changes).

Result

Log archiving is activated. To see the archived logs, use the Log Viewer tool.

More information: Predefined General Views