The man page for ‘logrotate’ is full of lies
The man page for ‘logrotate’ is full of lies. What it says is
extension ext
Log files are given the final extension ext after rotation. If
compression is used, the compression extension (normally .gz)
appears after ext.
What it means is (courtesy http://www.die.net/doc/linux/man/man8/logrotate.8.html)
extension ext Log files with ext extension can keep it after the rotation. If compression is used, the compression extension (normally .gz) appears after ext. For example you have a logfile named mylog.foo and want to rotate it to mylog.1.foo.gz instead of mylog.foo.1.gz.
Note the subtle difference, namely, “keep it” versus “given” (passive versus active; the latter implies the file is renamed). This might not apply to anything other then CentOS 3.



