You can set how large a log file can grow in MB, and determine
the number of log files the systems keeps.
About this task
Follow these steps to set the maximum size of your log files
in MB. After the file reaches the maximum size, it is renamed and
a new file is created. You can also set the number of files to be
stored after the size limit is reached.
Procedure
-
Go to $NMGUI_HOME/profile/etc/tnm/ and open the
.properties file of the GUI component you want to set the log size for.
- In the properties file, perform the following steps:
-
Locate the component_name.log.maxsize line and set the
maximum size a log file can reach in MB. For example, nmdb.log.maxsize=20 means
the maximum allowed size of the Management Database log file is 20 MB. The default setting is 10
MB.
- Locate the component_name.log.count line
and set the maximum number of files to be stored. For example, nmdb.log.count=2 means
the 2 latest log files will be kept apart from the one being written
to at the moment. The default setting is 1, meaning the current and
1 previous file are saved only.
Note: Once
the log file reaches the specified maximum size limit, it is renamed
and a new file is created. The first log file is named ncp_component_name.0.log,
and the most recent log messages are always in this file. Previous
log files are saved with the number increased (for example ncp_nmdb.1.log, ncp_nmdb.2.log,
and so on).
- Perform the same steps for the trace files by locating
and editing the component_name.trace.maxsize and component_name.trace.count lines.
- Save the .properties file.