Configuring Log Files Archiving
Prerequisites
Start the Config Tool by double clicking the configtool script file in <SAP_install_dir>/<system_name>/<instance_name>/j2ee/configtool directory.
Context
Use this procedure to configure automatic archiving of AS Java log files.
By default, logs are written into twenty files, each file with a maximum size of 10 MB. You can change this predefined configuration using the Config Tool.
For more information, see step 4 of the Editing a Destination section in the following topic: Adding, Editing and Removing Log Destinations.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.
Procedure
-
Choose
-
From the list of properties, select ArchiveOldLogFiles .
By default, log archiving is disabled and the value is set to OFF .
-
To activate the log files archiving, in Custom value field, set the value as ON .
-
Choose Set Custom Value to apply the new value.
-
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 .
-
In Custom Value field, enter the name of the new directory.
-
Choose Set Custom Value .
-
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.
-
In the Custom Value field, enter the names of the files to be archived. The log file names have to be separated by semicolon (;).
-
Choose Set Custom Value .
-
Choose
.
Results
Log archiving is activated. To see the archived logs, use the Log Viewer tool.
More information: Predefined General Views

