UTMStack

Articles10 min read

FortiGate SIEM Integration: Send FortiGate Logs to a SIEM

By UTMStack Team

UTMStack blog: FortiGate logs to SIEM

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

  1. Dec 2022CVE-2022-42475SSL-VPN heap overflow, code execution without signing in
  2. Jun 2023CVE-2023-27997SSL-VPN heap overflow, code execution without signing in
  3. Feb 2024CVE-2024-21762Out-of-bounds write through crafted HTTP requests
  4. Jan 2025CVE-2024-55591Authentication bypass to super-admin through a Node.js websocket
  5. Mar 2025CVE-2025-24472Authentication bypass to super-admin through crafted proxy requests
Source: CISA Known Exploited Vulnerabilities catalog, checked December 2026. Amber marks the SSL-VPN flaw used most widely, blue marks the two that hand an attacker an administrator account.

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:

SettingOptionsWhat to choose
modeudp (default), reliable (TCP, RFC 6587), legacy-reliable (RFC 3195)reliable if the SIEM accepts TCP, so long messages and bursts are not lost
portDefault 514The port your SIEM collector listens on for FortiGate
formatdefault (key=value), csv, cef, rfc5424, json, and custom in 8.0default or cef, whichever your SIEM’s FortiGate parser reads
enc-algorithmhigh-medium, high, low, disable (default)high with reliable mode, to send logs over TLS
source-ipAny interface addressAn address the SIEM can recognize, if the FortiGate has many interfaces
max-log-rateMBps, 0 means no limitLeave 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

set mode udpUDPSimple and the default. No delivery check, and long messages can be cut by the receiver.
set mode reliableTCPDelivery is checked. Better for long security logs and traffic bursts.
reliable + enc-algorithm highTLSTCP plus encryption. Use it when logs cross a network you do not control.
Gray is the FortiOS default. Blue and amber need the SIEM collector to listen on TCP, and TLS also needs a certificate on the collector.

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 typeExamples of subtypesWhy the SIEM needs it
Eventsystem, user, vpn, router, ha, sdwan, wirelessAdministrator 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-filterBlocked exploits, malware verdicts, data leaks. Low volume, high value.
Trafficforward, local, multicast, snifferWho talked to whom. The bulk of the volume, and the record investigations rely on.

Three defaults decide how much the SIEM really receives:

  1. Policy logging. Each firewall policy has set logtraffic, which is all (All Sessions), utm (Security Events) or disable. With utm, the FortiGate logs only sessions where a security profile acted. Use all on policies for internet access, VPN users and servers that hold sensitive data.
  2. 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-log under config log setting if you want to see scans and blocked connection attempts.
  3. 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

Built-in UTMStack ruleWrite your own rule
  1. Get inReach the VPN or the admin interface
    Burst of failed VPN sign-ins10 in 15 minFailed admin logins, then a successsame addressAdmin login from an unusual sourceadmin
  2. StayKeep control of the firewall
    New administrator accountsystem eventPolicy or VPN setting changed outside a change windowconfig change
  3. ActThreats passing through
    Critical IPS detections3 in 15 minMalware outbreak5 in 1 hourSandbox malicious verdictFortiSandboxRepeated data loss prevention hits3 in 1 hour
  4. HideBlind the owner
    FortiGate stops sending logsno eventsLogging disabled on a policyconfig change
Thresholds are those of the built-in UTMStack rules as of December 2026. The amber items depend on your own change process, so most teams write those rules themselves.

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):

  1. 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.
  2. Point the FortiGate at it. Use the syslog commands above with set server set to the Collector’s address, set port 7005 and set format default. For TCP use set mode reliable; for TLS add set enc-algorithm high.
  3. 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

  1. FortiGatesyslog, key=value or CEF
  2. Collectorport 7005, UDP, TCP or TLS
  3. Parserfields such as source, destination, user and action
  4. Ruleschecked as each log arrives
Parsed FortiGate fields share names with other sources, so a rule can match a firewall address against endpoint and identity logs.

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