--- title: "Configure Fortinet FortiGate using the command line interface" slug: "configure-fortinet-fortigate-using-the-command-line-interface" tags: ["ESM", "Reference"] updated: 2026-10-27T15:50:12Z published: 2026-10-27T15:50:12Z canonical: "docs.trellix.com/configure-fortinet-fortigate-using-the-command-line-interface" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure Fortinet FortiGate using the command line interface ### 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 set mode set port 514 set facility set source-ip 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. :