We need to use logrotate to limit the log file size
Modify the logrotate.conf under etc folder as below:
cat /etc/logrotate.conf
$ORACLE_HOME/user_projects/domains/bi/servers/obips1/logs
{
size 50M
create
700 obiee obiee
rotate 5
}
Size: 50M – logrotate runs only if the file size is
equal to (or greater than) this size.
Create: – rotate the original file and create the
new file with specified permission, user and group.
Rotate: – limits the number of log file rotation.
So, this would keep only the recent 5 rotated log files.
No comments:
Post a Comment