Re: logrotate/logwatch error on fc15

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alex pise:
> Hi,
> 
> I have an fc15 box and I'm having a problem with logwatch. I'm using
> bzip2 for the compresscmd for logrotate, yet it somehow is giving the
> compressed files a gz instead of bz2 extension. Logwatch uses this to
> determine which command to use to read the compressed files, so it
> therefore is using the wrong command.
> 
> However, the files seem to be begin rotated. I hoped someone could
> help clarify what's going on. I have the following in
> /etc/logrotate.conf:
> 
> # uncomment this if you want your log files compressed
> compresscmd /usr/bin/bzip2
> compress
> 
> Here's a list of the freshclam files that are being compressed and rotated:
> 
> # ls -l /var/log/clamav/freshclam.log*
> -rw-rw---- 1 clamupdate amavis 6775 Oct 21 17:47 /var/log/clamav/freshclam.log
> -rw-rw---- 1 clamupdate amavis  939 Oct 11 23:47
> /var/log/clamav/freshclam.log-20121012.gz
> -rw-rw---- 1 clamupdate amavis  916 Oct 12 23:46
> /var/log/clamav/freshclam.log-20121013.gz
> -rw-rw---- 1 clamupdate amavis  855 Oct 13 23:46
> /var/log/clamav/freshclam.log-20121014.gz
> 
> Running 'file' on the compressed files says they are bzip2 files.
> Here's the contents of the error message I receive from logwatch in an
> email every day from cron.daily:
> 
> /etc/cron.daily/0logwatch:
> gzip: /var/log/clamav/freshclam.log-20121019.gz: not in gzip format
> system 'zcat '/var/log/clamav/freshclam.log-20121019.gz' >>
> /var/cache/logwatch/logwatch.zOSnHbtE/clam-update-archive' failed: 256
> at /etc/cron.daily/0logwatch line 764.
> 
> Why are the files being compressed and named with the wrong extension?
	Is there another compress* option in you configuration? As of
logrotate(8):

compressext
              Specifies which extension to use on compressed logfiles, if
compression is enabled.  The default follows that of the configured
compression command.

the extension "should follow."

-- 

--Zdenek Pytela, <pytela@xxxxxxxxxxxx>

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux