Show TOC Start of Content Area

Procedure documentation Configuring Log Files Archiving  Locate the document in its SAP Library structure

Use

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

Logs are written to 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 files is converted into a ZIP file and stored as an archive on the file system.

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.

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  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 the Custom value field, set the value as ON.

       4.      Choose Set 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\<Dispatcher or server>\log\archive.

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

       7.      Choose Set to apply the new directory.

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

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 to apply the log file names.

   11.      Choose This graphic is explained in the accompanying text Apply changes to save the changes.

   12.      For the changes to take effect, restart the cluster.

Result

Log archiving is activated. After the ZIP file is done, the new logs keep on overwriting the old log files.

More information about viewing log archive records: Predefined General Views.

 

End of Content Area