rsyslogd
daemon is responsible for collecting service messages coming from applications and the kernel, then dispatching them into log files (usually stored in the /var/log/
directory). It obeys the /etc/rsyslog.conf
configuration file.
auth
dan authpriv
: untuk otentikasi;
cron
: comes from task scheduling services, cron
and atd
;
daemon
: affects a daemon without any special classification (DNS, NTP, etc.);
ftp
: concerns the FTP server;
kern
: pesan yang datang dari kernel;
lpr
: berasal dari subsistem pencetakan;
mail
: berasal dari subsistem surel;
news
: Usenet subsystem message (especially from an NNTP — Network News Transfer Protocol — server that manages newsgroups);
syslog
: pesan-pesan dari server syslogd
itu sendiri;
user
: pesan-pesan pengguna (generik);
uucp
: messages from the UUCP server (Unix to Unix Copy Program, an old protocol notably used to distribute e-mail messages);
local0
sampai local7
: disediakan untuk penggunaan lokal.
emerg
: "Tolong!" Ada keadaan darurat, sistem ini mungkin tidak dapat digunakan.
alert
: buru-buru, penundaan bisa berbahaya, tindakan harus diambil segera;
crit
: kondisi kritis;
err
: kesalahan;
warn
: peringatan (potensi kesalahan);
notice
: kondisi normal, tapi pesan tersebut penting;
info
: pesan informatif;
debug
: pesan pengawakutuan (debug).
/etc/rsyslog.conf
file is detailed in the rsyslog.conf(5) manual page, but there is also HTML documentation available in the rsyslog-doc package (/usr/share/doc/rsyslog-doc/html/index.html
). The overall principle is to write “selector” and “action” pairs. The selector defines all relevant messages, and the actions describes how to deal with them.
subsystem.priority
pairs (example: auth.notice;mail.info
). An asterisk may represent all subsystems or all priorities (examples: *.alert
or mail.*
). Several subsystems can be grouped, by separating them with a comma (example: auth,mail.info
). The priority indicated also covers messages of equal or higher priority; thus auth.alert
indicates the auth
subsystem messages of alert
or emerg
priority. Prefixed with an exclamation point (!), it indicates the opposite, in other words the strictly lower priorities; auth.!notice
, thus, indicates messages issued from auth
, with info
or debug
priority. Prefixed with an equal sign (=), it corresponds to precisely and only the priority indicated (auth.=notice
only concerns messages from auth
with notice
priority).
kern.info;kern.!err
means messages from the kernel with priority between info
and warn
. The none
priority indicates the empty set (no priorities), and may serve to exclude a subsystem from a set of messages. Thus, *.crit;kern.none
indicates all the messages of priority equal to or higher than crit
not coming from the kernel.
/var/log/messages
);
syslog
server (example: @log.falcot.com
);
|/dev/xconsole
);
root,rhertzog
);
*
);
/dev/tty8
).