How to give the zip file name in logrotate?

Hi,
How to give file name for the zip file while compressing in logrotate...
Should we need to give it in the logrotate.conf file or in the spec file...?

which compress tools do you use in logrotate?

for gzip, you can use below command to rename the log file name with date.

gzip -S .`date +%Y%m%d`.gz logs.file

Hi,
I am using "compress" directive to zip the files in the logrotate code. But when using compress, I am unable to give the file name in the logrotate code.
Check the code below, for eg.,

/var/log/messages {
   rotate 5
   weekly
   compress                                 #how to give filename here while zipping...??
   postrotate
       /usr/bin/killall -HUP syslogd
   endscript
       }