Saturday, 31 March 2018

How to configure Rsyslog - Client configuration



Install rsyslog package using below command, if not available on the client:


[root@linuxcnf ~]# yum install rsyslog

Backup the rsyslog file configuration:

[root@linuxcnf ~]# cp –p /etc/rsyslog.conf /etc/rsyslog.conf.ORIG

Open the rsyslog configuration file and add the following statement at the bottom of the file and replace the IP address with remote centralized logger server IP address:

[root@linuxcnf ~]# vi /etc/rsyslog.conf
*.*                                @192.168.43.105:514

Reload the rsyslog service using the following command:

[root@linuxcnf ~]# service rsyslog restart
Redirecting to /bin/systemctl restart rsyslog.service
[root@linuxcnf ~]#

Now all the logs are send to the centralized logger server.

No comments:

Post a comment