[Ukfreebsd] newsyslog

Tutton, James James.Tutton at redstone.co.uk
Wed May 13 09:29:58 BST 2009


Hi Ed,

Interesting development on this.  

As you thought and I had found via my own testing the -a flag in /etc/crontab works and moves the logs into a global folder.  

The issue is when the flag is present it no longer compresses the logs even although the settings are in the newsyslog.conf  

It leaves me with a great dilemma as my logs are now on a larger drive for achieving them long term but are 10x the size they need to be and hence still going to fill the disk. ARGH

James Tutton

-----Original Message-----
From: Edmund Craske [mailto:edmund at m00is.net] 
Sent: 12 May 2009 19:38
To: Tutton, James
Cc: Ukfreebsd at uk.freebsd.org
Subject: Re: [Ukfreebsd] newsyslog

Edmund Craske wrote:
> Tutton, James wrote:
>> Hi Folks,
>>
>>  
>>
>> Probably a very simple answer but can't find it for looking.
>>
>>  
>>
>> How can you get newsyslog.conf to move older files to a separate
>> directory.  The manual for newsyslog says
>>
>>  
>>
>>      *-a* _directory_
>>
>>              Specify a _directory_ into which archived log files will be writ-
>>
>>              ten.  If _directory_ is a relative path, it is appended to the par-
>>
>>              ent directory of each log and the archived log is stored in the
>>
>>              result.  If an absolute path is given, all archived logs are
>>
>>              stored in the given _directory_.  If _directory_ does not exist for a
>>
>>              specified log, it is ignored for that entry and the log is rotat-
>>
>>              ed as if the *-a* option was not specified.
>>
>>  
>>
>> But can't find an equivalent option to include in newsyslog.conf as want
>> to put different files in different directories.
>>
>>  
>>
>> **James Tutton**
> 
> Based upon the man page, I would suggest that that option works on all logs
> listed in newsyslog.conf so it would be all or nothing... You could always
> run newsyslog twice with 2 different configs to just move certain ones, but
> it's a bit of a kludge!
> 
> Ed

Oh, and if you were just wondering where to put the command flag, newsyslog
is run by cron, using /etc/crontab, so add it there!

Ed 
 
**********************************************************************

Is your Organisation's business critical data at risk?  Want to keep ahead of emerging security technology trends?
 
Redstone Managed Solutions:  We Connect, We Secure,  We Manage
 
SEE THIS MONTH'S SPECIAL OFFERS.
 
Redstone Managed Solutions has over 10 years IT Security experience and is part of Redstone plc 
which has five divisions - each one specialising in complementary ICT expertise.
**********************************************************************
 
DISCLAIMER:
This correspondence may contain information which is confidential or proprietary or both.  Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited. If you are not the intended recipient you may not disclose, copy or use this information.  If you have received this message in error, please contact the sender to discuss its return or destruction.


The contents, comments and views contained or expressed within this correspondence do not necessarily reflect those of Redstone, its subsidiaries, affiliates, associates or sister companies and are not intended to create legal relations with the recipient.

Redstone may monitor email traffic data and also the content of email for the purposes of security and staff training. 

If you would like to know more about Redstone, visit us on the web at www.redstone.co.uk or contact our Head Office on 0845-200-2200.


Redstone Managed Solutions Limited
Registered in England & Wales with Company Number: 03410223
Registered Office: 80 Great Eastern Street, London EC2A 3RS
**********************************************************************


More information about the Ukfreebsd mailing list