Forwarding logs from rsyslog client to a remote rsyslogs server
Software Requirements
- Linux operating system
- Rsyslog installed (version 5.0 or higher recommended)
- Root or sudo access
Network Requirements
- Network connectivity between client and remote server
- Defined IP address of the remote Rsyslog server
- Open network ports (typically 514 for UDP or TCP)
Step 1:
In the Rsyslog Client (machine)
- To login as root just type : sudo i-
- Enter root password
- Type: sudo yum update && yum install rsyslog, Note: please verify if syslog is successfully installed.
- Type the following commands for
the for rsyslog server andrsyslog Client : systemctl start rsyslog and systemctl enable rsyslog - Check the status of the rsyslog using this command: systemctl status rsyslog Note: It should be in active state
Step 2:
- Type this command to edit : vim /etc/rsyslog.conf
- Find the lines if enabled $Modload imusock and $Modload imjournal
- Find the lines $Modload imudp and $UDPServerRun 514 and enable it. Note to enable uncomment those lines.
For Rsyslog Server and Rsyslog Client (machine)