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.

NOTE   Attempting to add the same host, port configuration as the audit user (another LNH user) results in an error.

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

syslog remotehost add -host <hostname/IP> [-protocol <protocol>] [-port <port>][-mode <authmode>] [-name <commonname>] [-tls]

Argument(s) Shortcut Description
-host <hostname/IP> -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, relp

RELP protocol is not available when server mode is selected

-port <port> -po

Remote Logging Server port number.

Range: 0-65535

Default: 514

-mode <authmode> -m

Authentication mode.

Valid values: server, mutual

-name <commonname> -n

Server common name.

-tls -t

Setup host with tls.

Example

lunash:>syslog remotehost add -host 192.12.1.123

Stopping syslog:                                           [  OK  ]

Starting syslog:                                           [  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)

Example Configuring Remote Server with Server-authentication, TCP, and Self-signed Certs on Non-default Port

lunash:>syslog remotehost cert installca server_self_cert.pem
Attempting to install server_self_cert.pem
CA certificate installed successfully.
The syslog service needs to be (re)started before a secure connection can be established.

Command Result : 0 (Success)

lunash:>syslog remotehost add -host 192.168.140.45 -protocol tcp -port 30004 -mode server -tls
Stopping syslog:                                           [  OK  ]
Starting syslog:                                           [  OK  ]
192.168.140.45 added successfully
Make sure the rsyslog service on 192.168.140.45 is properly configured to receive the logs

Command Result : 0 (Success)

lunash:>syslog remotehost list
Remote logging server(s):
=========================
[192.168.140.45]:30004, tcp, tls

Command Result : 0 (Success)