I am trying to create a separate log file for a application in Linux. So far I have created a .conf script to separate log in custom log file based on program name and it's working correctly.
But, I want to limit the size of log file at 10K and I am using
$outchannel for this purpose. The script is stored as
$outchannel o_abc, /var/log/abc.log, 10240, /home/xyz/logrot if $programname == 'abc' then :omfile:$o_abc
/home/xyz/logrot contains the following:
mv -f /var/log/abc.log /var/log/abc.log.1
Below the 10K limit the logging is working correctly, but after log exceeds 10K size limit, file abc.log.1 doesn't generated and logging in abc.log stops.
If it matters, my system is Xubuntu 12.04 running
Thanks in advance.