1. Ensure rsyslogd is installed.
rpm -qa | grep -i rsyslog
2. Take backup of /etc/rsyslog.conf file.
3. Edit file /etc/rsyslog.conf and add below line to the end of file.
*.* @@10.XX.XX.XX:514
In above replace 10.XX IP with the rsyslogd server IP and 514 with rsyslogd server port
4. Restart rsyslogd service
service rsyslogd restart
5. Now test test logging message using below command.
logger -p warn "Test Message"
6. Check if "Test Message" is printed on local client Linux node /var/log/messages file.
7. Check if "Test Message" is printed on remote rsyslogd server (10.XX.XX.XX) in /var/log/messages file.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Products to which Article Applies
All Linux OS’s
Article Author: Tarun Boyella
No comments:
Post a Comment