Listener log rotation in 19c not working
I am testing listener log rotation in 19c by creating a file in /etc/logrotate.d. The following is the contents. However, after I set this I can see that the logs are deleted rather than rotated.
My objective is to keep the logs will be rotated hourly, 6 logs will be there in compressed format.
Please help.
-------------------------------------------------------------------------------------
/u01/app/grid/diag/tnslsnr/cirs010101/listener/trace/listener.log /u01/app/odaorabase/oracle/diag/tnslsnr/cirs010101/listener/trace/listener.log
{
hourly
copytruncate
missingok
rotate 6
compress
}
-----------------------------------------------------------------------------