logrotate size limit

Hi
i configured log rotate for a specific file.
/var/log/sauer

i configured create a file in logrotate.d
[root@ci logrotate.d]# cat /etc/logrotate.d/sauer
#this is a logrotate configuration file for msu_ng logs

/var/log/sauer {
rotate 5
size=1M
daily
compress
postrotate
/usr/bin/killall -HUP syslogd
endscript
}

then i update the file by using l"ogrotate -f /etc/logrotate.d/sauer"
then i test the new log with IO(while true ; do echo "blabla" >> /var/log/sauer ;done)
i dont understand why the log size is getting larger then 1MB (as you can see i configured size=1M)? do you know why the size limit didnt effect.

The limit is only checked after the next invocation of logrotate. So, make it bigger than 1 MB, THEN run logrotate. Also, remove the = sign. This might prevent the script from properly seeing the "size" option.

so is there any way to limit the exact log size ?

Well, you can run logrotate with high granularity -- every minute using a cron job. Or, you can pipe the output of your process to [i]rotatelogs[i], a program that comes with apache:

 some_process 2>&1 | /usr/sbin/rotatelogs /var/log/sauer 1M

thanks
one last thing
do you know what is the option that related to the first rotation.
mean if there is compress it wont effect the first rotate log(like messages.1).
cheers

delaycompress