syslog remotehost add

Add a remote host receiving the logs. Can be any system that provides the remote syslog service.

NOTE   For this function to work you must open receiving udp port 514 on the remote log server.

Syntax

syslog remotehost add <hostname/IP>

Argument(s) Description
<hostname/IP> Specifies the hostname or the IP address of the remote computer system that will be accepting and storing the syslogs.

Example

psesh:>syslog remotehost add mylinuxbox

mylinuxbox added successfully
Please restart syslog with <service restart syslog> command
Make sure syslog service is started on mylinuxbox with -r option

Command Result : 0 (Success)