rsyslogd is a system log daemon that can be used to collect, process, and forward log messages.
Example
- Specify the path to the configuration file
rsyslogd -c /etc/rsyslog.conf
rsyslogd -f
- Specify the path to save the log file
rsyslogd -a /var/log/messages
rsyslogd -i
rsyslogd -n
- Specify the path to the socket file
rsyslogd -s /var/run/rsyslogd.sock
rsyslogd -x