[Logwatch-Devel] applydate patch for logwatch-6.0.1

laurent.dufour at havas.com laurent.dufour at havas.com
Wed Mar 23 03:31:51 MST 2005






Hi guys,

After reading the anqwer from Bjorn regarding the --range option I decided
to take the bull by the horn and code.

Well, I choose option 2 as Bjorn, suggested it, and I put some new
functions into Logwatch.pm to build a regex to search date for different
services, this is the main function for all the scripts that searches date,

So in the following patch you will see that
BuildLastNdays($date_service,$last_n_days) in Logwatch.pm will code in
function of a service and of a number of days behind.

You will see things like this in teh different patches to applydate

BuildLastNdays('HTTP',$Range);
BuildLastNdays('STD',$Range);
BuildLastNdays('US',$Range);
BuildLastNdays('XFER_LONG',$Range);
BuildLastNdays('XFER_SHORT',$Range);
BuildLastNdays('YUM_LONG',$Range);
BuildLastNdays('YUM_SHORT',$Range);
.....
and so on.

So here is the patch that haas modified the following file

   scripts/logfiles/yum/applydate
   scripts/logfiles/cron/applydate
   scripts/logfiles/xferlog/applydate
   scripts/logfiles/up2date/applydate
   scripts/logfiles/autorpm/applydate
   scripts/logfiles/samba/applydate
   scripts/shared/applystddate
   scripts/shared/applyhttpdate
   scripts/shared/applyusdate
   scripts/services/clam-update

and of course Logwatch.pm

I made it against logwatch-6.0.1 and you should untar it in /etc/log.d

Well, I hope you'll enjoy it.

Bye.


----------------------------------------------------------------------------------------

Laurent DUFOUR - HAVAS IT
Vice Chief Technical Officer - Directeur Technique Adjoint
2 Allée de Longchamp - 92281 - Suresnes - France
tel: +33 (0)158478830 - fax: +33 (0)1 58478815
mailto:laurent.dufour at havas.com
http://www.havas.com
(See attached file: applydate-patch-6.0.1.tar.gz)
----------------------------------------------------------------------------------------

Ce message et, le cas échéant, les pièces jointes sont strictement
confidentiels et destinés à l'usage exclusif de leur destinataire. Il est
interdit à toute personne autre que leur destinataire de les lire, copier,
dupliquer et/ou communiquer à tout tiers quelconque. Si vous recevez ce
message par erreur, merci de le détruire et d'en aviser immédiatement
l'expéditeur par e-mail.

This message and any attachment are confidential and transmitted for the
exclusive use of the intended recipient. It is prohibited for anyone other
than the recipient to read, copy, duplicate and/or disclose the content to
any third-person. Should you receive this message by mistake, please delete
it and contact the sender by return e-mail.

Este mensaje y, cuando proceda, los documentos adjuntos son estrictamente
confidenciales y destinados a el uso exclusivo de su destinatario. Está
prohibido a toda persona otro que su destinatario de leerlos, copiar,
duplicar y/o comunicar a todo tercero cualquiera. Si recibe este mensaje
por error, gracias de destruirlo y de informar inmediatamente el remitente
por correo electrónico.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?ISO-8859-1?Q?applydate-patch-6=2E0=2E1=2Etar=2Egz?=
Type: application/octet-stream
Size: 8403 bytes
Desc: not available
Url : http://list.kaybee.org/pipermail/logwatch-devel/attachments/20050323/74f78827/ISO-8859-1Qapplydate-patch-62E02E12Etar2Egz-0001.obj


More information about the Logwatch-Devel mailing list