Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Syslog settings

l15k4 edited this page Mar 22, 2014 · 1 revision

Syslog is logging timestamps without miliseconds which is not quite useful. In /etc/rsyslog.conf :

  • define MailLogFormat template
$template MailLogFormat,"%timegenerated:1:4:date-rfc3339% %timegenerated:1:6:date-rfc3164-buggyday% %timegenerated:12:23:date-rfc3339% %source% %syslogtag%%msg%\n"
  • tell syslog to use template MailLogFormat for logging into mail.* log files
mail.*              -/var/log/mail.log;MailLogFormat
Clone this wiki locally