Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2012 12:29:28 -0500
From:      alexus <alexus@gmail.com>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: newsyslog-local.conf
Message-ID:  <CAJxePNL%2B5UMr7SSqFsr5nH6w5EJF=YoDrnDecUnXdrFPA4SyTw@mail.gmail.com>
In-Reply-To: <4F4281C9.9060601@infracaninophile.co.uk>
References:  <CAJxePNLROWxA4AtS2TNeTVRyWJPpazY_iS=hsKXMdbV3WQZbTQ@mail.gmail.com> <4F4281C9.9060601@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
s# newsyslog -n -v
Processing /etc/newsyslog.conf
Found: <include> /etc/newsyslog-local.conf
Processing /etc/newsyslog-local.conf
/var/log/all.log <7J>: does not exist, skipped.
/var/log/amd.log <7J>: does not exist, skipped.
/var/log/auth.log <7J>: size (Kb): 4 [100] --> skipping
/var/log/console.log <5J>: does not exist, skipped.
/var/log/cron <3J>: size (Kb): 44 [100] --> skipping
/var/log/daily.log <7J>: does not exist, skipped.
/var/log/debug.log <7J>: size (Kb): 4 [100] --> skipping
/var/log/kerberos.log <7J>: does not exist, skipped.
/var/log/lpd-errs <7J>: size (Kb): 4 [100] --> skipping
/var/log/maillog <7J>: --> will trim at Tue Feb 21 00:00:00 2012
/var/log/messages <5J>: size (Kb): 24 [100] --> skipping
/var/log/monthly.log <12J>: does not exist, skipped.
/var/log/pflog <3J>: does not exist, skipped.
/var/log/ppp.log <3J>: size (Kb): 4 [100] --> skipping
/var/log/security <10J>: size (Kb): 4 [100] --> skipping
/var/log/sendmail.st <10>:  age (hr): 439 [168] --> trimming log....
	rm -f /var/log/sendmail.st.10
	rm -f /var/log/sendmail.st.10.gz
	rm -f /var/log/sendmail.st.10.bz2
	rm -f /var/log/sendmail.st.10.xz
	rm -f /var/log/sendmail.st.9
	rm -f /var/log/sendmail.st.9.gz
	rm -f /var/log/sendmail.st.9.bz2
	rm -f /var/log/sendmail.st.9.xz
	mv /var/log/sendmail.st.3 /var/log/sendmail.st.4
	chmod 640 /var/log/sendmail.st.4
	mv /var/log/sendmail.st.2 /var/log/sendmail.st.3
	chmod 640 /var/log/sendmail.st.3
	mv /var/log/sendmail.st.1 /var/log/sendmail.st.2
	chmod 640 /var/log/sendmail.st.2
	mv /var/log/sendmail.st.0 /var/log/sendmail.st.1
	chmod 640 /var/log/sendmail.st.1
	ln /var/log/sendmail.st /var/log/sendmail.st.0
	chmod 640 /var/log/sendmail.st.0
Start new log...
	mktemp /var/log/sendmail.st.zXXXXXX
	chmod 640 /var/log/sendmail.st.zXXXXXX
	mv /var/log/sendmail.st.zXXXXXX /var/log/sendmail.st
newsyslog: pid file doesn't exist: /var/run/syslog.pid
/var/log/utx.log <3>: --> will trim at Thu Mar  1 05:00:00 2012
/var/log/weekly.log <5J>: does not exist, skipped.
/var/log/xferlog <7J>: size (Kb): 4 [100] --> skipping
/var/log/squid/access.log <7J>: --> will trim at Tue Feb 21 00:00:00 2012
/var/log/squid/cache.log <7J>: --> will trim at Tue Feb 21 00:00:00 2012
Signal all daemon process(es)...
	sleep 10
s#

one thing that I noticed:
newsyslog: pid file doesn't exist: /var/run/syslog.pid

s# grep ^syslogd /etc/rc.conf
syslogd_enable=3D"NO"
s#

does syslogd has be run for newsyslog to operate?



On Mon, Feb 20, 2012 at 12:24 PM, Matthew Seaman
<m.seaman@infracaninophile.co.uk> wrote:
> On 20/02/2012 17:04, alexus wrote:
>> s# tail -1 /etc/newsyslog.conf
>> <include> /etc/newsyslog-local.conf
>> s# cat /etc/newsyslog-local.conf
>> /var/log/squid/access.log =C2=A0 =C2=A0 squid:squid =C2=A0 =C2=A0 640 =
=C2=A07 =C2=A0 =C2=A0 * =C2=A0 =C2=A0@T00 =C2=A0J
>> /var/run/squid/squid.pid
>> /var/log/squid/cache.log =C2=A0 =C2=A0 =C2=A0squid:squid =C2=A0 =C2=A0 6=
40 =C2=A07 =C2=A0 =C2=A0 * =C2=A0 =C2=A0@T00 =C2=A0J
>> s# ls -la /var/log/squid/
>> total 95672
>> drwxr-x--- =C2=A02 squid =C2=A0squid =C2=A0 =C2=A0 =C2=A0 512 Jan 13 04:=
23 .
>> drwxr-xr-x =C2=A03 root =C2=A0 wheel =C2=A0 =C2=A0 =C2=A01024 Feb =C2=A0=
6 00:00 ..
>> -rw-r----- =C2=A01 squid =C2=A0squid =C2=A097804783 Feb 20 16:32 access.=
log
>> -rw-r----- =C2=A01 squid =C2=A0squid =C2=A0 =C2=A0111481 Feb 20 16:29 ca=
che.log
>> s#
>>
>> nothing gets rotated:( what am I doing wrong?
>>
>
> Hmmm... nothing leaps out at me as obviously wrong.
>
> What does running 'newsyslog -n -v' tell you?
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Cheers,
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 7 Priory Courtyard
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey =C2=A0 =C2=A0 Ramsgate
> JID: matthew@infracaninophile.co.uk =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 Kent, CT11 9PW
>



--=20
http://alexus.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJxePNL%2B5UMr7SSqFsr5nH6w5EJF=YoDrnDecUnXdrFPA4SyTw>