Configure system log
Sympa reports events and errors using syslog protocol.
Sympa configuration parameters
-
The log facility is
LOCAL1
by default, and it may be changed bysyslog
parameter insympa.conf
. -
The default value of
log_socket_type
parameter isunix
, using Unix domain socket to communicate with syslog server. Some platforms including Solaris prefer tostream
. The value may also beinet
, using TCP or UDP connection.
Instruction by syslog servers
Traditional syslog
- Create log file:
# touch /var/log/sympa.log # chmod 640 /var/log/sympa.log
- Add following line to syslog.conf:
local1.* -/var/log/sympa.log
- Reload syslog service.
Tests
- Run
testlogs
utility (Note: replace$SCRIPTDIR
below):# $SCRIPTDIR/testlogs.pl
And confirm that following message will be shown:
Ok, now check logs
- Check log file and confirm that following log line was recorded:
sympa/testlogs[XXXX]: info main:: Logs seems OK, default log level 0
If something went unexpected, check configuration of syslog server.