Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2003 18:00:52 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        "admin" <admin2@enabled.com>, freebsd-questions@freebsd.org
Subject:   Re: newbie: newsyslog ssl_engine_log rotation
Message-ID:  <p05210605badc8dca395a@[128.113.24.47]>
In-Reply-To: <20030505201718.M79790@enabled.com>
References:  <20030505175009.M97941@enabled.com> <p05210604badc773ff0b6@[128.113.24.47]> <20030505201718.M79790@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:17 PM -0800 5/5/03, admin wrote:
>On Mon, 5 May 2003, Garance A Drosihn wrote
>  > At 9:51 AM -0800 5/5/03, admin wrote:
>  > >here is the /etc/newsyslog.conf entry
>>  >
>>  >--- snip ---
>>  >
>>  >/var/log/ssl_engine_log                 640  10    @T00  *     Z
>>  >/var/run/httpd.pid 30
>>  >
>  > >--- snip ---
>
>
>
>newsyslog claims its skipping the file.  can you explain
>why this behavior is happening?
>
>
>--- snip ---
>
>typhoon# newsyslog -nv | grep ssl
>/var/log/ssl_engine_log <10Z>: --> skipping
>
>--- snip ---

Okay, I think I see what is happening.  But if I'm right, then I
need to change newsyslog to be a bit more helpful with error msgs.

The fields in newsyslog.conf are:
# logfilename  [owner:group]  mode  count  size  when  flags ...

So, your entry is asking for
     mode    640
     count    10
     size   @T00      <- oops
     when      *

I think you want to switch the @T00 and * fields.  Once you do,
it will only be rotated for the midnight-run of newsyslog, so
the 'newsyslog -nv' will still do nothing.  But it should at
least have a better summary-message, and newsyslog should do
the right thing when it is run at midnight.

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05210605badc8dca395a>