switch-controller switch-log
You can use the following command to enable and disable the managed FortiSwitches to export their syslogs to the FortiGate. The setting is global, and the default setting is enabled. To allow a level of filtering, FortiGate sets the user field to fortiswitch-syslog
for each entry.
You can override the global log settings for a FortiSwitch, using the following command:
config switch-controller managed-switch
edit <switch-id>
config switch-log
set local-override enable
end
At this point, you can configure the log settings that apply to this specific switch
config switch-controller switch-log set status {enable | disable} Enable/disable adding FortiSwitch logs to FortiGate event log. set severity {option} Severity of FortiSwitch logs that are added to the FortiGate event log. emergency Emergency level. alert Alert level. critical Critical level. error Error level. warning Warning level. notification Notification level. information Information level. debug Debug level. end