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


  1. Choose Start of the navigation pathcluster-data Next navigation step <template name> Next navigation step  managers  Next navigation step  LogManager.End of the navigation path

  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.

Results

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

More information: Predefined General Views