
A FortiGate sees every connection in and out of the network, and its SSL-VPN and management interface face the internet. That makes it one of the most useful log sources a security team has, and one of the most attacked devices it owns. Since 2022, at least five FortiOS flaws have been exploited in ransomware campaigns. A FortiGate also keeps only limited logs on the box. This guide shows how to send FortiGate logs to a SIEM (security information and event management system), which log types to turn on, and what to alert on.
The short answer: A FortiGate SIEM integration sends FortiOS logs to the SIEM over syslog. In the FortiOS CLI, run config log syslogd setting, enable it, and set the SIEM collector’s address, port, mode (udp, or reliable for TCP and TLS) and format (default key=value or CEF). FortiOS supports up to four syslog servers. Policies must log traffic, or the SIEM receives little.
Why send FortiGate logs to a SIEM?
FortiGate logs belong in a SIEM because the firewall is both a witness and a target. As a witness, it records connections, VPN sign-ins, blocked attacks and malware verdicts that no endpoint sees. As a target, its own administrator and VPN events are the first sign that someone is attacking the device itself. A SIEM keeps those records off the device, puts them on one timeline with server and identity logs, and raises an alert when a pattern appears.
The US Cybersecurity and Infrastructure Security Agency (CISA) lists these FortiOS flaws in its Known Exploited Vulnerabilities catalog, each marked as used in ransomware campaigns:
FortiOS flaws exploited in the wild, 2022 to 2025
The date CISA added each one to its Known Exploited Vulnerabilities catalog
- Dec 2022CVE-2022-42475SSL-VPN heap overflow, code execution without signing in
- Jun 2023CVE-2023-27997SSL-VPN heap overflow, code execution without signing in
- Feb 2024CVE-2024-21762Out-of-bounds write through crafted HTTP requests
- Jan 2025CVE-2024-55591Authentication bypass to super-admin through a Node.js websocket
- Mar 2025CVE-2025-24472Authentication bypass to super-admin through crafted proxy requests
Patching alone does not prove a FortiGate is clean. In April 2025, Fortinet reported that attackers who had used the first three flaws above left a file behind that kept read-only access to the device’s files, configuration included, after the patch (Fortinet PSIRT, CISA alert). Logs stored outside the device are how you look back at what happened before and after a fix.
How do you send FortiGate logs to a SIEM?
You send FortiGate logs to a SIEM with the FortiOS syslog settings. The commands below follow the FortiOS 8.0 CLI reference (config log syslogd setting) and work the same way on 7.4 and 7.6. Replace the address and port with your SIEM collector’s.
config log syslogd setting
set status enable
set server "10.0.0.25"
set port 514
set mode udp
set format default
end
The settings that matter:
| Setting | Options | What to choose |
|---|---|---|
mode | udp (default), reliable (TCP, RFC 6587), legacy-reliable (RFC 3195) | reliable if the SIEM accepts TCP, so long messages and bursts are not lost |
port | Default 514 | The port your SIEM collector listens on for FortiGate |
format | default (key=value), csv, cef, rfc5424, json, and custom in 8.0 | default or cef, whichever your SIEM’s FortiGate parser reads |
enc-algorithm | high-medium, high, low, disable (default) | high with reliable mode, to send logs over TLS |
source-ip | Any interface address | An address the SIEM can recognize, if the FortiGate has many interfaces |
max-log-rate | MBps, 0 means no limit | Leave at 0 unless the link to the SIEM is small |
In the web interface the same switch is under Log & Report, Log Settings, Global Settings, “Syslog logging” (Fortinet log settings). The page has one server field. To send to more than one destination, use the CLI: syslogd2, syslogd3 and syslogd4 each take their own settings, filter and format, for up to four servers in total (logging to syslog servers). That is useful during a SIEM migration, when old and new systems must receive the same logs.
Three ways to carry FortiGate logs
The FortiOS syslog mode decides how logs travel to the SIEM
Which FortiGate logs should you send to a SIEM?
Send the FortiGate security logs and event logs in full, and choose traffic logs on purpose. FortiOS groups its logs into three types (log types and subtypes):
| Log type | Examples of subtypes | Why the SIEM needs it |
|---|---|---|
| Event | system, user, vpn, router, ha, sdwan, wireless | Administrator sign-ins, configuration changes, VPN sign-ins. This is where attacks on the FortiGate itself show up. |
| Security (UTM) | ips, virus, webfilter, app-ctrl, dns, ssl, anomaly, dlp, file-filter | Blocked exploits, malware verdicts, data leaks. Low volume, high value. |
| Traffic | forward, local, multicast, sniffer | Who talked to whom. The bulk of the volume, and the record investigations rely on. |
Three defaults decide how much the SIEM really receives:
- Policy logging. Each firewall policy has
set logtraffic, which isall(All Sessions),utm(Security Events) ordisable. Withutm, the FortiGate logs only sessions where a security profile acted. Useallon policies for internet access, VPN users and servers that hold sensitive data. - Denied traffic. Fortinet’s own guidance says that by default FortiGate does not log traffic dropped by the implicit deny rule (Fortinet community). Turn on
fwpolicy-implicit-logunderconfig log settingif you want to see scans and blocked connection attempts. - Local traffic. Traffic to and from the FortiGate itself, such as connections to its management and VPN ports, is not logged by default because of its volume. Turn it on at least for the management interface.
The syslog filter can then trim what leaves the box. config log syslogd filter sets a minimum severity (the default is information) and can turn forward, local, multicast and sniffer traffic on or off for that server (syslogd filter). If volume worries you, Fortinet’s own advice for cutting it is to move policies from All Sessions to Security Events where full records are not needed. Our guide to firewall log retention covers how long to keep each type.
What should a SIEM detect in FortiGate logs?
A SIEM should alert on attacks against the FortiGate itself first, then on the threats the FortiGate sees passing through. The detections below follow the order an attack usually takes.
FortiGate detections along the attack path
What to alert on at each stage, and whether UTMStack ships a rule for it
- Get inReach the VPN or the admin interfaceBurst of failed VPN sign-ins
10 in 15 minFailed admin logins, then a successsame addressAdmin login from an unusual sourceadmin - StayKeep control of the firewallNew administrator account
system eventPolicy or VPN setting changed outside a change windowconfig change - ActThreats passing throughCritical IPS detections
3 in 15 minMalware outbreak5 in 1 hourSandbox malicious verdictFortiSandboxRepeated data loss prevention hits3 in 1 hour - HideBlind the ownerFortiGate stops sending logs
no eventsLogging disabled on a policyconfig change
Correlation is where a SIEM adds what the FortiGate cannot do alone. A VPN sign-in followed within minutes by failed sign-ins on internal servers from the VPN address pool, or an IPS alert for a server that then starts unusual processes, only shows up when firewall and endpoint logs sit side by side. See SIEM correlation rules for how those rules are built.
How does UTMStack integrate with FortiGate?
UTMStack is an open source SIEM and XDR (extended detection and response) platform that receives FortiGate logs over syslog, parses them into common fields and checks each log against more than 600 detection rules mapped to MITRE ATT&CK as it arrives, before it is stored. The FortiGate integration is part of the free Community edition.
The setup takes three steps (UTMStack docs):
- Enable the listener. In UTMStack, open Integrations, choose the FortiGate card, pick the Collector and the protocol (UDP, TCP or TLS) and enable it. The Collector listens on port 7005 for FortiGate by default.
- Point the FortiGate at it. Use the syslog commands above with
set serverset to the Collector’s address,set port 7005andset format default. For TCP useset mode reliable; for TLS addset enc-algorithm high. - Check the data. The FortiGate appears in Log Explorer and in the data sources list, usually within about 20 minutes.
FortiGate to UTMStack
The path a FortiGate log takes, from the firewall to an alert
- FortiGatesyslog, key=value or CEF
- Collectorport 7005, UDP, TCP or TLS
- Parserfields such as source, destination, user and action
- Ruleschecked as each log arrives
What UTMStack does with FortiGate logs:
- Parsing: the FortiGate parser reads the default key=value format and CEF. CSV is not a good choice, because it produces events with almost no named fields. Related reading: SIEM log normalization.
- Detection: seven built-in FortiGate rules cover VPN brute force, administrator account compromise, admin sign-ins from unusual sources, critical IPS detections, malware outbreaks, sandbox verdicts and data loss prevention. Ten more rules cover FortiWeb, Fortinet’s web application firewall. See threat detection.
- Retention and search: logs can be kept for up to 5 years, with older data in searchable cold storage.
- Response: response flows can block an address, disable an account or isolate a host on Windows, Linux and macOS machines that run the UTMStack agent. They do not push changes to the FortiGate itself.
Limits to know. Over UDP, the Collector cuts messages at 2,048 bytes, and over TCP at 8,192 bytes, so use TCP when your FortiGate writes long security logs. Changing the listening port takes a command on the Collector host, not only a change in the interface. And the built-in rules do not yet cover FortiGate configuration changes or new administrator accounts, so add those as custom rules. UTMStack is priced per device, never by log volume, so turning on full traffic logging does not raise the bill by gigabyte. See pricing or ask for a quote. For other firewalls and routers, see the full integrations list or our guide to MikroTik SIEM integration.
Frequently asked questions
How do I forward FortiGate logs to a SIEM? Use the FortiOS CLI command config log syslogd setting. Set status to enable, server to the SIEM collector’s address, port to the collector’s port, mode to udp or reliable, and format to default or cef. Then make sure your firewall policies log traffic, or the SIEM receives only security events.
Can a FortiGate send logs to more than one syslog server? Yes. FortiOS supports up to four syslog servers, configured as syslogd, syslogd2, syslogd3 and syslogd4 in the CLI. Each one has its own address, port, mode, format and filter. The web interface shows only the first.
Should I use UDP or TCP for FortiGate syslog? Use TCP (set mode reliable) when your SIEM accepts it. UDP has no delivery check, and long security log messages can be cut by the receiver. Add set enc-algorithm high on top of reliable mode to encrypt logs with TLS.
Which syslog format should FortiGate use for a SIEM? Use the format your SIEM’s FortiGate parser expects, usually the default key=value format or CEF. Both carry named fields such as source, destination, user and action. CSV is a poor choice for most SIEMs, because fields lose their names.
Why is my FortiGate not logging denied traffic? By default, FortiGate does not log traffic dropped by the implicit deny rule. Turn on fwpolicy-implicit-log under config log setting, or add an explicit deny policy at the bottom with logging enabled. Expect a large increase in volume on an internet-facing interface.
Is FortiAnalyzer a SIEM? FortiAnalyzer is Fortinet’s log management, analytics and reporting product, built mainly around Fortinet devices, while Fortinet sells FortiSIEM as its SIEM. Many teams run FortiAnalyzer for firewall reporting and also send FortiGate logs to a SIEM that covers endpoints, identity and cloud services. We build UTMStack, so weigh our view accordingly.
Sources
- FortiOS 8.0 CLI reference: config log syslogd setting: modes, formats, TLS and default port
- FortiOS 8.0 CLI reference: config log syslogd filter
- FortiOS 8.0 administration guide: logging to syslog servers: up to four servers
- FortiOS 8.0 administration guide: log settings and targets
- FortiOS 8.0 log message reference: log types and subtypes
- Fortinet community: implicit deny logs
- Fortinet community: minimizing logging from FortiGate
- CISA Known Exploited Vulnerabilities catalog: CVE-2022-42475, CVE-2023-27997, CVE-2024-21762, CVE-2024-55591 and CVE-2025-24472, checked December 2026
- Fortinet PSIRT: analysis of threat actor activity, April 2025
- CISA alert, April 11, 2025: new post-exploitation technique
- UTMStack docs: Fortinet FortiGate integration


