*BSD News Article 97874


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.ci.com.au!brian.telstra.net!act.news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!europa.clark.net!feed1.news.erols.com!news1.netusa.net!nntp.newsfirst.com!nntp.crosslink.net!not-for-mail
From: sgregory@crosslink.net (Scott Gregory)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Newsyslog not rotating logs properly
Date: Tue, 17 Jun 1997 00:14:41 GMT
Organization: CrossLink Internet Services
Lines: 44
Message-ID: <33a5d46b.196968677@news.crosslink.net>
NNTP-Posting-Host: 206.246.70.232
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.0/32.386
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43022

I am trying to get newsyslog to rotate my logs but it is not doing the
rotation as scheduled.  I am running 2.2.2-RELEASE.  Here is my
newsyslog.conf:

# configuration file for newsyslog
# $Id: newsyslog.conf,v 1.6.2.1 1997/02/05 14:18:24 mpp Exp $
#
# logfilename           owner.group     mode count size time [ZB]
/var/cron/log                           600  3     100  *     Z
/var/log/amd.log                        664  7     100  *     Z
/var/log/kerberos.log                   664  7     100  *     Z
/var/log/lpd-errs                       664  7     100  *     Z
/var/log/maillog                        664  7     *    24    Z
/var/log/messages                       664  7     50   *     Z
/var/log/slip.log                       600  3     100  *     Z
/var/log/ppp.log                        600  3     100  *     Z
/var/log/wtmp                           664  7     *    168   ZB

# Added by Scott
/var/log/sshd_log                       644  7     100  *     ZB
/var/log/sshd_refused                   644  14    *    24    ZB
/var/log/tcp_log                        644  7     100  *     ZB
/var/log/tcp_refused                    644  14    *    24    ZB
/var/log/smap_log                       644  7     100  *     ZB
/var/log/nmb                            644  3     100  *     ZB
/var/log/smb                            644  3     100  *     ZB

All the preset rotations work fine.  All the ones that I added that
are supposed to be rotated every 24 hours (sshd_refused and
tcp_refused)  seem to get rotated twice a day.  I have removed all the
old files hoping that it was just getting caught on an old time stamp
but it didn't seem to matter.

Any ideas?

Also,  I looked at the man page for newsyslog and couldn't find
anything on whether you could set it up to rotate on every xK or x
hours, which ever was first.  Before I try it has anyone already tried
and suceeded/failed?

Thanks in advance,

Scott