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 test command.
- With Sympa 6.2.72 and later, run:
# sympa test syslog
- With Sympa 6.2.70 or earlier, run (Note: replace
$SCRIPTDIR
below):# $SCRIPTDIR/testlogs.pl
And confirm that following message will be shown:
Ok, now check logs
- With Sympa 6.2.72 and later, run:
-
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.