how to use rsyslogd command with examples

It is a system daemon for receiving and processing log messages on Linux and Unix systems. Also used to collect, filter, and route log messages generated by various system and application services to appropriate log files or other destinations.

  • About rsyslogd: A reliable and extended syslogd
  • Comes From : rsyslog-4.6.2
  • Configuration Files:
  • Path:


1. To start the rsyslog service

$ rsyslogd

 2. To suppress the warnings

$ rsyslogd -w

 3. To disable the DNS for remote messaging

$ rsyslogd -x 

4. To send UDP messages to all the targets

$ rsyslogd -A 

5. To causes rsyslogd to listen to IPv4 addresses only

$ rsyslogd -4

 6. To causes rsyslogd to listen to IPv6 addresses only

$ rsyslogd -6

 7. To selects the desired backward compatibility mode

$ rsyslogd -c 4.2 

8. To turn on the debug mode

$ rsyslogd -d 

9. To specify the alernative configuration file

$ rsyslogd -f /etc/file 

10. To specify the alternate pid file

$ rsyslogd -i /var/ 

11. To specify the hostnames to be logged

$ rsyslogd -l

 12. To avoid auto-backgrounding

$ rsyslogd -n

 13. To do a config check 

$ rsyslogd -N 1

14. To specify a domainname that should be stripped off before logging

$ rsyslogd -s .net 

15. To print the version

$ rsyslogd -v 

Related Commands: rsyslog.conf, logger, syslog, syslog, services, savelog 

Leave a Reply

Your email address will not be published. Required fields are marked *