Talis Forums Archive

A place to discuss all your library issues
It is currently Sat Sep 23, 2017 10:40 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Mon Oct 11, 2010 10:36 am 
Site Admin

Joined: Wed Sep 08, 2004 9:00 am
Posts: 68
Location: Talis
Note: You may have to install logrotate yourself and it may be installed in a different location. Please refer to instructions used to install logrotate.
Create a file in /usr/local/etc/logrotate.d
For example zebralogs
Add in log files required to be compressed separated by a space

/var/tmp/zebra_auth_index_prod_talis.log /var/tmp/zebra_bib_index_prod_talis.log
{
create 0644 talisie blcmp
weekly
rotate 3
compress
}

Create = Permissions and owners
Weekly = timeframe for rotation
Rotate = no of copies kept

Compress, Copytruncate etc = What to do with the file which rotated

There should also be a corresponding cron line
e.g
5 7 * * * /usr/local/bin/logrotate /usr/local/etc/logrotate.conf

Here the logrotate.conf includes the config files held in /usr/local/etc/logrotate.d

# view /usr/local/etc/logrotate.conf
# additional packages can drop log rotation information into this directory
include /usr/local/etc/logrotate.d

_________________
Mark Summers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group