The new docs.trellix.com features a modernized UI and AI-powered conversational search. Content is currently available in English, with additional languages expected in November 2026. We hope you enjoy the updated experience.

Configure Fortinet FortiGate using the command line interface

Prev Next

Note

The preferred format is space-delimited logs, but you can also use comma-separated logs.

Enter these commands:

config log syslogd setting set status enable
set server <IP address of Receiver> set mode <udp or reliable TCP> set port 514
set facility <facility name>
set source-ip <IP address of syslog source> set format default end

Note

If you already have a syslog server configured in the FortiGate UTM, you can still add up to a total of three syslog servers in the configuration by changing the first line to config log syslogd2 setting or config log syslogd3 setting.

For more information, see FortiOS™ Handbook Logging and Reporting for FortiOS 6.0 under the section, Advanced Logging.