Skip to Content.
Sympa Menu

en - [sympa-users] Re: sympa and logcheck...

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Marco Gaiarin <address@concealed>
  • To: David Verdin <address@concealed>
  • Cc: address@concealed
  • Subject: [sympa-users] Re: sympa and logcheck...
  • Date: Mon, 2 Jul 2007 23:14:24 +0200

Mandi! David Verdin
In chel d? si favelave...

DV> Anyway, do you mean that you have too much logs coming out of sympa
DV> despite your log_level parameter in sympa.conf being set to 0 ?

Not properly.
Logcheck (http://logcheck.org/) is a system that parse logs and extract
'events' based on a set of rules, barely regular expressions.

Substantially you have to define some sort of 'ignore lists' as a RE,
and build up the ignore list for sympa have proved to be a rather
comploex tasks, eg for now (for wwsympa):

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] Could not find CSS file
/style.css, using default CSS$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] unknown action
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\]
do_(home|loginrequest|choosepasswd)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\]
do_(remindpasswd|sendpasswd|log(in|out)|lists|help)\([^)]*\)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] do_logout: user not logged in$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] do_sendpasswd: no email$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] do_(which|pref)(|: no user)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] \[user [^[:space:]]+\]
(do_(serveradmin|pending_lists|purge_list\(\)|skinsedit)|get_(latest_lists|inactive_lists|closed_lists))$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] \[(user|alt) [^[:space:]]+\]
do_(home|choosepasswd|setpasswd|pref|setpref)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\] \[(user|alt) [^[:space:]]+\]
do_(logout|lists)(\([^)]*\)|: logout performed)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\](| \[user [^[:space:]]+\]) \[list
[._[:alnum:]-]+\] do_(info|admin)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: \[robot
[._[:alnum:]-]+\] \[client [._[:alnum:]-]+\](| \[user [^[:space:]]+\]) \[list
[._[:alnum:]-]+\]
do_(admin|edit_list(|_request)|review|arc|suboptions)\([^)]*\)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ wwsympa\[[0-9]+\]: ARC_FILE:
(thrd|mail|msg)[0-9]+\.html$


DV> If you want to gather synthetic informations about your logs, you might
DV> want to use the DB logs. This is a sympa 5.3 functionnality that allows
DV> to store some (not all) sympa logs in its database. This makes possible
DV> to consult them through the web interface, for example.
DV> The logs stored are those related to informations likely to be useful to
DV> owners (errors, bounce, etc.)

...this seems a very usefoul feature, but i'm using 5.2.X (debian
package) and indeed i think that will still need a correctly-written
logcheck rule file.

--
Il computer ? come la morosa:
meno ci mettono mano gli altri e meglio ?! ;-)
(Enrico)


  • [sympa-users] Re: sympa and logcheck..., Marco Gaiarin, 07/02/2007

Archive powered by MHonArc 2.6.19+.

Top of Page