![]() ![]() ![]() ![]() |
Before you begin
By default, the Controller and each Agent renames (rotates) its log file when the file grows to a size of 500 KBs. Each time the log file reaches this size, the WLOC renames the current log file and creates a new file-name.log to store new messages.
To rotate log or audit files for an Agent, access the Agent page in one of the following ways:
Field | Description |
---|---|
Log File Name |
Path name of the log file. The path can be absolute or relative to the Controller or Agent installation directory. When you click Save (in Step 4), WLOC writes all subsequent messages to the new file. To include a time and date stamp in the file name when
the log file is rotated, add When
WLOC rotates the log file, the rotated file name contains the
date stamp. For example, if WLOC rotates the Controller's log
file on 4 March, 2007 at 10:15 AM, the log file that contains
the old log messages will be named:
If you
do not include a time and date stamp, the rotated log files
are numbered in order of creation |
Rotation type |
Rotation style to use for rotating log files. Valid options include By Size and By Time. |
Rotation Size |
Maximum log file size (in KBs) before the current log file is rotated and a new log file is created. This value is valid only if the Rotation type was set to By Size. Note: To prevent a log file from growing too large, WLOC forces a log file to rotate if it reaches 500 MB in size, regardless of how you configure log file rotation. |
Rotation Directory |
Directory in which log files are stored. Enter an absolute pathname or a path name that is relative to the Controller or Agent installation directory. Be default, the rotated files are stored in the same directory as the log and audit files. |
Number of files limited |
Flag that specifies whether the number of log files should be limited. |
Rotation File Count |
Maximum number of log files to create before overwriting them. When the maximum number of log files is reached, the oldest file is overwritten. This value is valid only if the Number of files limited flag is enabled. |
Rotation on startup |
Flag that specifies whether log files should be rotated automatically at startup. |
Rotation Time |
Time of day that log files are rotated initially.
Specify the time using the following format:
|
Rotation Time Span |
Frequency at which log files are rotated with Rotation Time Span Factor. The rotation frequency is calculated as follows: (Rotation Time Span) * (Rotation Time Span Factor). This value defaults to 24. This value is valid only if the Rotation type is set to By Time. |
Rotation Time Span Factor |
Frequency at which log files are rotated with Rotation Time Span. The rotation frequency is calculated as follows: (Rotation Time Span) * (Rotation Time Span Factor). This value is specified in seconds and defaults to 3600000. This value is valid only if the Rotation type is set to By Time. |
The log configuration is updated and the following confirmation message is displayed:
![]() |