Syslogd

From LQWiki
Jump to navigation Jump to search

syslogd is a system log daemon which will log system messages in a standard way such that every message is prepended with time and hostname field.

   syslogd  [ -a socket ] [ -d ] 
            [ -f config file ] [ -h ] [ -l hostlist ] 
            [ -m interval ] [-n ] [ -p socket ] [ -r ] 
            [ -s domainlist ] [ -t ] [ -v ]

Syslogd's default configuration file is /etc/syslog.conf

Replacements with added features for syslog are rsyslogd and syslog-ng

To log a message with syslogd, open a console and enter

logger -p daemon.warn "This is only a test."

See also