You can configure the FortiGate unit from the CLI or web interface to send logs to a remote computer running a syslog server.
Command syntax pattern
config log syslogd setting
set <keyword> <variable>
config log syslogd setting
unset <keyword>
get log syslogd setting
show log syslogd setting
Note: The only command keyword for syslog setting that is not represented in the web based manager is the facility keyword.
Examples:
This example shows how to enable logging to a remote syslog server, configure an IP address and port for the server, and set the facility type to user.
config log syslogd setting
set status enable
set server 220.210.200.190
set port 514
set facility user
end
This example shows how to display the log setting for logging to a remote syslog server.
get log syslogd setting
This example shows how to display the configuration for logging to a remote syslog server.
show log syslogd setting
If the show command returns you to the prompt, the settings are at default.