Logging
To display syslog, run the following command:
admin@nvos:~$ nv show system log
To display specific syslog file, run the following command:
admin@nvos:~$ nv show system log files syslog.1
Remote Logging
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.
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
Last updated: