This is an old revision of the document!
$ logger -t postfix -p mail.info 'Message from postfix'
# journalctl -ra # journalctl --no-pager # journalctl -o json # journalctl -o verbose # journalctl -f
# journalctl -ra -u postfix # journalctl -ra -p err # man systemd.journal-fields # journalctl SYSLOG_FACILITY=2
# man journald.conf # journalctl --disk-usage
root@server:~# cat /etc/rsyslog.d/30-cisco.conf
local0.* -/var/log/cisco.log
root@server:~# touch /var/log/cisco.log root@server:~# chown syslog:adm /var/log/cisco.log root@server:~# restart rsyslog root@server:~# tail -f /var/log/cisco.log
root@server:~# cat /etc/rsyslog.conf
... $ModLoad imudp $UDPServerRun 514 ...
root@server:~# restart rsyslog
Использование почтовых псевдонимов
root@server:~# apt-get install logwatch root@server:~# /etc/cron.daily/00logwatch