Home >

LunaSH Command Reference Guide > LunaSH Commands > syslog > syslog remotehost add

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_or_IP_address>

Parameter Shortcut Description
<hostname_or_IP_address>  

Specifies the hostname or the IP address of the remote computer system that will be accepting and storing the syslogs.

Example

lunash:>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)