[SLE] logrotate not working with SuSE 9.0 Pro

From: Tim - moores.homeip.net (tim_at_moores.homeip.net)
Date: 09/10/04

  • Next message: Marcos Vinicius Lazarini: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"
    Date: Thu, 09 Sep 2004 23:35:12 -0400
    To: SuseLynuxEnglish <suse-linux-e@suse.com>
    
    

    Has anyone else had any trouble with the logrotate script working? My
    files are getting quite large and I don't have one compressed archive of
    older files. I did collapse my syslog server to write to only
    /var/log/messages and /var/log/mail. The script runs, but never rotates
    the files. Any ideas why? Here is some of my files:

    *ns1:/var/named/pz # cat /etc/logrotate.d/syslog *
    /var/log/messages {
        compress
        dateext
        maxage 365
        rotate 99
        missingok
        notifempty
        size +4096k
        create 640 root root
        sharedscripts
        postrotate
            /etc/init.d/syslog reload
        endscript
    }

    /var/log/mail {
        compress
        dateext
        maxage 365
        rotate 99
        missingok
        notifempty
        size +4096k
        create 640 root root
        sharedscripts
        postrotate
            /etc/init.d/syslog reload
        endscript
    }

    /var/log/clamd.log {
        compress
        dateext
        maxage 365
        rotate 99
        missingok
        notifempty
        size +2048k
        create 640 root root
        sharedscripts
        postrotate
            /etc/init.d/syslog reload
        endscript
    }

    *ns1:/var/named/pz # cat /etc/cron.daily/logrotate *
    #!/bin/sh

    /usr/sbin/logrotate /etc/logrotate.conf
    /usr/bin/reswatch

    *ns1:/var/named/pz # cat /etc/logrotate.conf *
    # see "man logrotate" for details
    # rotate log files weekly
    weekly

    # keep 4 weeks worth of backlogs
    rotate 4

    # create new (empty) log files after rotating old ones
    create

    # uncomment this if you want your log files compressed
    compress

    # uncomment these to switch compression to bzip2
    #compresscmd /usr/bin/bzip2
    #uncompresscmd /usr/bin/bunzip2

    # RPM packages drop log rotation information into this directory
    include /etc/logrotate.d

    # no packages own wtmp -- we'll rotate them here
    #/var/log/wtmp {
    # monthly
    # create 0664 root utmp
    # rotate 1
    #}

    # system-specific logs may be also be configured here.

    Thanks,
    Tim

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Marcos Vinicius Lazarini: "Re: [SLE] logrotate not working with SuSE 9.0 Pro"

    Relevant Pages

    • Re: [SLE] Mail Notification Problems
      ... # rotate log files weekly ... # create new log files after rotating old ones ... # create 0664 root utmp ...
      (SuSE)
    • Re: [SLE] logrotate not working with SuSE 9.0 Pro
      ... > rotate 99 ... > create 640 root root ... > # uncomment this if you want your log files compressed ...
      (SuSE)
    • [opensuse] /var/log/wtmp ("last" info not complete)
      ... When I run the "last" command for that login, ... # rotate log files weekly ... # create new log files after rotating old ones ...
      (SuSE)
    • Re: [squid-users] log rotation
      ... I have looked at wiki but cannot find information about log rotation ... # rotate log files weekly ... # create new log files after rotating old ones ...
      (freebsd-questions)
    • Re: Undoing File Compression
      ... Goto the root of the drive and select everything (Ctrl + A), then right click one, Properties, Advanced and clear Compress Files. ... You may need to compress something manually in the root folder to get explorer to recognise it needs to change the compression on the disk. ... > Is there a way to remove the disk clean-up file ...
      (microsoft.public.windowsxp.general)