Logrotate Web Files

I’ve set logrotate up on the Apache web logs but I’m running into a problem.  I wanted to compress the rotated logs with the highest possible compression using xz so I added:

 

compress

compresscmd /usr/bin/xz

compressoptions -e9

compressext .xz

delaycompress

 

It “almost” works, it does the compression with xz but it is ignoring the compressext command and instead giving it a ‘.gz’ extension which is wrong since it wasn’t compressed with gzip.

Any suggestions how to correct this?  Leave comments or e-mail nanook@eskimo.com please.