syslog filter howto ?

From: Bousquet Francois (Francois.Bousquet@cgi.ca)
Date: Fri Sep 10 2004 - 11:01:26 EDT


Hi SunManagers,

syslogd is running on my Solaris 7 box.

I have an OpenLDAP slapd configured and running (starting line :
/soft/openldap/libexec/slapd -h "ldaps:/// ldap:///")

/etc/syslog.conf is set to this :

# cat /etc/syslog.conf
#
*.debug /var/adm/messages
*.debug @loghost
*.emerg *
#

The problem is that slapd is logging a lot on the syslogs and I would like
to filter stuff with the syslod and to put it in another log ex :
/var/adm/slapd

But syslogd doesn't seems to have other filter types except the facility or
level.

How can I filter slapd logging ?
How can I know which facility.level a log to syslog is ?

Example of current syslog :
Sep 10 11:09:37 ub1981wfx01 slapd[27111]: conn=6 op=3 SRCH attr=uid
userPassword uidNumber gidNumber cn homeDirectory loginShell gecos
description objectClass
Sep 10 11:09:37 ub1981wfx01 slapd[27111]: conn=6 op=3 SEARCH RESULT tag=101
err=0 nentries=0 text=
Sep 10 11:09:51 ub1981wfx01 slapd[27111]: conn=9 fd=21 closed
Sep 10 11:09:51 ub1981wfx01 slapd[27111]: conn=10 fd=22 closed
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:25 EDT