To configure remote syslog to send syslog messages to a remote syslog server, follow the steps below.
-
Set remote syslog server.
admin@nvos:~$ nv set system syslog server <IP address/hostname>
-
(Optional) Set the destination port of the remote host.
admin@nvos:~$ nv set system syslog server 10.20.30.40 port 1234
-
(Optional) Filter log messages according to an input regex.
admin@nvos:~$ nv set system syslog server 10.20.30.40 filter include ERROR
-
Set the minimum severity of the log level to info (it has no impact on local log level).
admin@nvos:~$ nv set system syslog server 10.20.30.40 trap info
-
Set the protocol over which to communicate with remote syslog server
admin@nvos:~$ nv set system syslog server 10.20.30.40 protocol tcp
Remote Logging Commands
Last updated: