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
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 server10.20
.30.40
port1234
(Optional) Filter log messages according to an input regex.
admin
@nvos
:~$ nv set system syslog server10.20
.30.40
filter include ERRORSet the minimum severity of the log level to info.
admin
@nvos
:~$ nv set system syslog server10.20
.30.40
trap infoSet the protocol over which to communicate with remote syslog server
admin
@nvos
:~$ nv set system syslog server10.20
.30.40
protocol tcp