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.

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

syslog remotehost add -host <hostname_or_IP_address> [-protocol <protocol>] [-port <port>]

Option Shortcut Description
-host <hostname_or_IP_address> -h

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

-protocol <protocol> -pr

Specifies the network protocol.

Valid values: tcp,udp

-port <port> -po

Remote Logging Server port number.

Range: 0-65535

Example

lunash:>syslog remotehost add -host 192.12.1.123
 
Stopping syslog:                                           [  OK  ]
 
Starting syslog:                                           [  OK  ]
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
 
192.12.1.123 added successfully
Make sure the rsyslog service on 192.12.1.123 is properly configured to receive the logs
 
Command Result : 0 (Success)