This article will provide you with detailed steps on how to configure rsyslog to send logs to another server.
Step 2: Scroll down to the end of the file.
Step 3: In a new line add the following configuration. Here, enter the IP address and port of the destination server to where you want to forward logs to.
Step 4: Press ctrl + x to close the file. Type “Y” to save the file. Then press enter to save the file under the same name.
Step 5: Restart the rsyslog service using the following command:
Step 6: Use the following command to check the status of the rsyslog server. (It should reflect that the service is running)