Syslog

From Hackepedia
Revision as of 16:41, 16 March 2006 by Franks (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syslog is the common way of managing logfiles on UNIX. Processes that wish to log something write to a UNIX socket usually bound in /dev/log which then goes to syslogd that writes these logs to a file usually found in /var/log. Syslog has different facilities which are a series of different log categories and priorities which is self explanatory. High syslog priorities notify the entire system so that these logs do not get missed. syslog_ng is a popular alternative to the standard syslogd.

Check the Manual for your syslogd, as some popular implementations require you do add "-s" to the daemon to prevent it from listening on a port. You do not want syslogd listening on a port unless you've configured other hosts to log to that specific syslog server (Usually only for centralized logging).