Log Rotation can be setup for Admin and Managed servers in a Oracle Weblogic server.
Below log files can be setup for log rotation
a. Server log
b. Access log
c. Domain log
Domain log rotation -
1. Login to the Admin console of the weblogic server
2. In the Domain structure, click on the Domain name.
3. Navigate to the 'Logging' tab and edit the Logging properties. Restart the Admin and Managed servers
Server and Access Log rotation -
1. Login to the Admin console of the weblogic server
2. Select 'Environments', click on 'Servers' and select the Admin or Managed server for which the logs needs to be rotated
3. Navigate to the 'Logging' tab, select General for Server log, and HTTP for access log and edit the Logging properties. Restart the Admin and Managed servers as appropriate.
File Rotation Steps -
1. Provide the 'Rotation Type' - By Time or By Date
2. If you want to setup 'RotationType' as 'By Time' then fill the following fields
a. Begin Rotation Time - Eg. 23:45 (provide in 24 hrs)
b. Rotation Interval - 24 (every 24 hrs or every 4 hrs)
c. Limit number of retained files - 5 (if you need the old files to be removed from the system) - you can check this option, if you do not want to delete the old files
d. Log file Rotation directory - Provide the absolute path of the rotation directory
3. If you want to setup 'Rotation Type' as 'By Date' then fill the following fields
a. Rotation file size - 5000 (in kilobytes)
b. Limit number of retained files - 5 (if you need the old files to be removed from the system) - you can check this option, if you do not want to delete the old files
c. Log file Rotation directory - Provide the absolute path of the rotation directory
No comments:
Post a Comment