RE: [Exim] exicyclog request

Pàgina inicial
Delete this message
Reply to this message
Autor: Bernard Stern
Data:  
A: exim-users
Assumpte: RE: [Exim] exicyclog request
On 23 Sep 2001 21:14:28 -0000 michael@??? wrote:

>> Frankly, I haven't yet gotten fully comfortable with Linux logrotate
>> configurations. But it's only a matter of practice.


> If all you want it to rotate logs every now and then, logrotate is fine.
> If you like logs of exactly a day or week, you have a problem. Logrotate
> decides on its own when it is time to rotate instead of using fixed
> points of time, so a daily log does not mean that logrotate will run
> each midnight.


We have patched exim so that instead of logging to just 'mainlog',
it writes its mainlog output to mainlogs/<hostname>.<datestring>
with <hostname> the value of 'uname -n' and <datestring> the
date in format YYYY-MM-DD.
It's a lot easier to archive our logs that way. I can post the patch
if anyone is interested. Maybe this could even become a configurable
option ;-))

HTH,

Bernard Stern, SWITCH

____________S_W_I_T_CH___Swiss Academic_______________________________________
        mail: SWITCH Head Office       a          Tel: +41 1 268 1520
              Limmatquai 138           n          Fax: +41 1 268 1568
              CH-8001 Zurich           d        e-mail: stern@???
________________________________________Reseach Network_______________________