Hello All,

I have to Rotate one of my log file (test_cron.log) which is under /root/ on daily basis , so for that i have made one new file in under /etc/logrotate.d/soc_logs.
also added entry in crontab as : */1 * * * * /usr/sbin/logrotate /etc/logrotate.d/soc_logs
But it does not rotate daily.
and write code as follows.

/root/test_cron.log
{
compress
daily
size 20k
rotate 7
dateext
create 0600 root root

}

Also i want 7 days backup of that log file and if file size increased by say for example 20k then also it must be make new file with date extension.

Thanks in advance..
Santosh..