Fortinet black logo

CLI Reference

switch-controller remote-log

Configure logging by FortiSwitch device to a remote syslog server.

  config switch-controller remote-log
      Description: Configure logging by FortiSwitch device to a remote syslog server.
      edit <name>
          set status [enable|disable]
          set server {string}
          set port {integer}
          set severity [emergency|alert|...]
          set csv [enable|disable]
          set facility [kernel|user|...]
      next
  end

config switch-controller remote-log

Parameter Name Description Type Size
status Enable/disable logging by FortiSwitch device to a remote syslog server.
enable: Enable logging by FortiSwitch device to a remote syslog server.
disable: Disable logging by FortiSwitch device to a remote syslog server.
option -
server IPv4 address of the remote syslog server. string Maximum length: 63
port Remote syslog server listening port. integer Minimum value: 0 Maximum value: 65535
severity Severity of logs to be transferred to remote log server.
emergency: Emergency level.
alert: Alert level.
critical: Critical level.
error: Error level.
warning: Warning level.
notification: Notification level.
information: Information level.
debug: Debug level.
option -
csv Enable/disable comma-separated value (CSV) strings.
enable: Enable comma-separated value (CSV) strings.
disable: Disable comma-separated value (CSV) strings.
option -
facility Facility to log to remote syslog server.
kernel: Kernel messages.
user: Random user-level messages.
mail: Mail system.
daemon: System daemons.
auth: Security/authorization messages.
syslog: Messages generated internally by syslogd.
lpr: Line printer subsystem.
news: Network news subsystem.
uucp: UUCP server messages.
cron: Clock daemon.
authpriv: Security/authorization messages (private).
ftp: FTP daemon.
ntp: NTP daemon.
audit: Log audit.
alert: Log alert.
clock: Clock daemon.
local0: Reserved for local use.
local1: Reserved for local use.
local2: Reserved for local use.
local3: Reserved for local use.
local4: Reserved for local use.
local5: Reserved for local use.
local6: Reserved for local use.
local7: Reserved for local use.
option -

switch-controller remote-log

Configure logging by FortiSwitch device to a remote syslog server.

  config switch-controller remote-log
      Description: Configure logging by FortiSwitch device to a remote syslog server.
      edit <name>
          set status [enable|disable]
          set server {string}
          set port {integer}
          set severity [emergency|alert|...]
          set csv [enable|disable]
          set facility [kernel|user|...]
      next
  end

config switch-controller remote-log

Parameter Name Description Type Size
status Enable/disable logging by FortiSwitch device to a remote syslog server.
enable: Enable logging by FortiSwitch device to a remote syslog server.
disable: Disable logging by FortiSwitch device to a remote syslog server.
option -
server IPv4 address of the remote syslog server. string Maximum length: 63
port Remote syslog server listening port. integer Minimum value: 0 Maximum value: 65535
severity Severity of logs to be transferred to remote log server.
emergency: Emergency level.
alert: Alert level.
critical: Critical level.
error: Error level.
warning: Warning level.
notification: Notification level.
information: Information level.
debug: Debug level.
option -
csv Enable/disable comma-separated value (CSV) strings.
enable: Enable comma-separated value (CSV) strings.
disable: Disable comma-separated value (CSV) strings.
option -
facility Facility to log to remote syslog server.
kernel: Kernel messages.
user: Random user-level messages.
mail: Mail system.
daemon: System daemons.
auth: Security/authorization messages.
syslog: Messages generated internally by syslogd.
lpr: Line printer subsystem.
news: Network news subsystem.
uucp: UUCP server messages.
cron: Clock daemon.
authpriv: Security/authorization messages (private).
ftp: FTP daemon.
ntp: NTP daemon.
audit: Log audit.
alert: Log alert.
clock: Clock daemon.
local0: Reserved for local use.
local1: Reserved for local use.
local2: Reserved for local use.
local3: Reserved for local use.
local4: Reserved for local use.
local5: Reserved for local use.
local6: Reserved for local use.
local7: Reserved for local use.
option -