[zebra 22133] logrotate does not work with zebra log file

From: shen mode (shenmode_at_yahoo.com.cn)
Date: 01/22/05

  • Next message: Chris Mason: "RE: Imaging Software/Hardware for use with Redhat WS Version 3"
    Date: Sat, 22 Jan 2005 17:55:25 +0800 (CST)
    To: redhat list <redhat-list@redhat.com>, Zebra <zebra@ml.zebra.org>
    
    
    

    Hi,

    I tried to rotate ospf log file which is created by
    ospfd in zebra.

    I set up logrotate.conf like:

    /data1/netflow/zebra/log/ospf.log {
        daily
        rotate 7
        copytruncate
        compress
    }

    and execute logrotate as:

     /usr/sbin/logrotate -s /var/log/logrotate.status
    /etc/logrotate.conf -f --debug

    it shows :

    rotating pattern: /data1/netflow/zebra/log/ospf.log
    forced from command line (7 rotations)
    empty log files are rotated, old logs are removed
    considering log /data1/netflow/zebra/log/ospf.log
      log needs rotating
    rotating log /data1/netflow/zebra/log/ospf.log,
    log->rotateCount is 7
    renaming /data1/netflow/zebra/log/ospf.log.7.gz to
    /data1/netflow/zebra/log/ospf.log.8.gz (rotatecount 7,
    logstart 1, i 7),
    renaming /data1/netflow/zebra/log/ospf.log.6.gz to
    /data1/netflow/zebra/log/ospf.log.7.gz (rotatecount 7,
    logstart 1, i 6),
    renaming /data1/netflow/zebra/log/ospf.log.5.gz to
    /data1/netflow/zebra/log/ospf.log.6.gz (rotatecount 7,
    logstart 1, i 5),
    renaming /data1/netflow/zebra/log/ospf.log.4.gz to
    /data1/netflow/zebra/log/ospf.log.5.gz (rotatecount 7,
    logstart 1, i 4),
    renaming /data1/netflow/zebra/log/ospf.log.3.gz to
    /data1/netflow/zebra/log/ospf.log.4.gz (rotatecount 7,
    logstart 1, i 3),
    renaming /data1/netflow/zebra/log/ospf.log.2.gz to
    /data1/netflow/zebra/log/ospf.log.3.gz (rotatecount 7,
    logstart 1, i 2),
    renaming /data1/netflow/zebra/log/ospf.log.1.gz to
    /data1/netflow/zebra/log/ospf.log.2.gz (rotatecount 7,
    logstart 1, i 1),
    renaming /data1/netflow/zebra/log/ospf.log.0.gz to
    /data1/netflow/zebra/log/ospf.log.1.gz (rotatecount 7,
    logstart 1, i 0),
    copying /data1/netflow/zebra/log/ospf.log to
    /data1/netflow/zebra/log/ospf.log.1
    truncating /data1/netflow/zebra/log/ospf.log
    compressing new log with: /bin/gzip
    '/data1/netflow/zebra/log/ospf.log.1'
    removing old log
    /data1/netflow/zebra/log/ospf.log.8.gz
    [root@net log]#

    but when I check /data1/netflow/zebra/log, I noticed
    there is nothing changed to ospf.log, and no
    ospflog.gz is created.

    Do I miss something with configuration?

    thanks

    Joe

    _________________________________________________________
    Do You Yahoo!?
    150万曲MP3疯狂搜,带您闯入音乐殿堂
    http://music.yisou.com/
    美女明星应有尽有,搜遍美图、艳图和酷图
    http://image.yisou.com
    1G就是1000兆,雅虎电邮自助扩容!
    http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

    
    

    _______________________________________________
    Zebra mailing list
    Zebra@ml.zebra.org
    http://ml.zebra.org/mailman/listinfo/zebra

    
    

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Chris Mason: "RE: Imaging Software/Hardware for use with Redhat WS Version 3"

    Relevant Pages

    • logrotate does not work with zebra log file
      ... I tried to rotate ospf log file which is created by ... renaming /data1/netflow/zebra/log/ospf.log.7.gz to ... logstart 1, i 7), ...
      (RedHat)
    • RE: logrotate does not work with zebra log file
      ... AFAIK, in debug mode logrotate doesn't change files, you should run logrotate *without* debug. ... logrotate does not work with zebra log file ... renaming /data1/netflow/zebra/log/ospf.log.7.gz to ... logstart 1, i 7), ...
      (RedHat)
    • Re: Compressing a .mdw file
      ... >> we copy it and compress it using Tools | Database ... >> We decided to compress it by writing a program and using ... >> then renaming the original to x.old and renaming the new ... >Dim jro As JRO.JetEngine ...
      (microsoft.public.access.security)
    • Re: Compressing a .mdw file
      ... > we copy it and compress it using Tools | Database ... > We decided to compress it by writing a program and using ... > then renaming the original to x.old and renaming the new ... Dim jro As JRO.JetEngine ...
      (microsoft.public.access.security)