FortiGate Log Fields: logid, type, action and More, With Examples
Published
One key=value line per log message: forwarded or denied traffic, a system or VPN event, or a security-profile verdict (IPS, antivirus). The logid names the exact message type; srcip, dstip, action and the policy say what the firewall saw and did.
Official documentation: Fortinet: FortiOS Log Message Reference · Fortinet: Log ID numbers · Fortinet: Sample logs by log type
Sample record
Jan 15 2024 09:05:00 fortigate-fw devname="FG-HQ-01" devid="FG600D3916802462" logid="0000000013" type="traffic" subtype="forward" level="notice" vd="root" eventtime=1705313100 tz="+0000" srcip=203.0.113.11 srcport=60000 dstip=10.0.0.100 dstport=80 proto=6 action="accept" policyname="allow-web" service="HTTP" user="bob" date=2024-01-15 time=09:05:00
Jan 15 2024 09:10:00 fortigate-fw devname="FG-HQ-01" devid="FG600D3916802462" logid="0102043039" type="event" subtype="user" level="information" vd="root" eventtime=1705313400 tz="+0000" srcip=203.0.113.50 action="login" user="[email protected]" date=2024-01-15 time=09:10:00 From the LogTriage parser test corpus — synthetic data, no real hosts or users.
Field reference
| Field | Type | Meaning | Why it matters for security |
|---|---|---|---|
| logide.g. 0000000013 | string (10 digits) | Fortinet: "a unique identifier for that specific log." The first two digits are the log type (traffic "00", event "01"), the next two the subtype, the last six the message ID — 0000000013 is LOG_ID_TRAFFIC_END_FORWARD. | The most reliable field to filter on; look the six-digit message ID up in Fortinet's log message reference to see the exact meaning. |
| typee.g. traffic | string | Fortinet: "Log type" — traffic, event or a security-profile type such as utm. | Separates sessions (traffic) from things that happened on the firewall (event) and verdicts of its security engines (utm). |
| subtypee.g. forward | string | Fortinet: "Subtype of the traffic." forward for traffic through the firewall; for events, the area such as vpn, user or system; for utm, the engine such as ips or virus. | utm with subtype ips or virus is where the firewall's own detections are; event with subtype vpn is where remote-access abuse shows. |
| levele.g. notice | string | Fortinet: "Log Level" — the severity FortiOS assigns to the message (notice, information, warning, error, alert, critical…). | Useful for triage queues, but it is the message's fixed severity, not a judgment about this event; read the logid and action as well. |
| devnamee.g. FG-HQ-01 | string | Host name configured on the FortiGate that wrote the log. | Tells you which firewall in a fleet saw the traffic. |
| devide.g. FG600D3916802462 | string | Fortinet: "Device serial number." | Stable across renames, unlike devname; use it to join with FortiAnalyzer or asset data. |
| vde.g. root | string | Fortinet: "Virtual domain name." The VDOM the event belongs to; root on devices without VDOMs. | On multi-tenant firewalls the same address ranges can exist in several VDOMs, so filter on vd before drawing conclusions. |
| eventtimee.g. 1705312801 | integer (epoch) | When the event occurred, as an epoch value. Fortinet's own sample logs carry it in nanoseconds (19 digits); the samples here use seconds. | Check the digit count before converting; date and time are the device's local time, and tz gives its offset. |
| srcipe.g. 203.0.113.10 | IP address | Fortinet: "Source IP address." | The main pivot for scanning, brute force and every finding from the security profiles. |
| srcporte.g. 52100 | number | Fortinet: "Source port number." | Rarely meaningful on its own; it helps match one session with logs on the destination host. |
| dstipe.g. 10.0.0.100 | IP address | Fortinet: "Destination IP Address." | Many destinations from one srcip in a short window is a sweep; the same internal destination in many IPS logs is the server under attack. |
| dstporte.g. 443 | number | Fortinet: "Destination Port." | Inbound traffic to 22, 3389 or 445 from the internet deserves attention whether it was allowed or denied. |
| protoe.g. 6 | number | Fortinet: "protocol number" — the IP protocol number (6 TCP, 17 UDP, 1 ICMP). | UDP to unusual ports from an internal host can be tunnelling or a beacon; read it with dstport. |
| actione.g. deny | string | Fortinet, for traffic logs: "Deny = blocked by firewall policy. Start = session start log … All Others = allowed by Firewall Policy and the status indicates how it was closed." Events and security profiles have their own values, such as login, negotiate, block and blocked. | For utm logs it is the verdict — block (IPS) and blocked (antivirus) mean the engine stopped the content; for traffic, deny is the policy refusing the session. |
| policynamee.g. allow-web | string | Name of the firewall policy that matched the session. | Traffic allowed by a broad "any" policy, or denied by the catch-all at the bottom, tells you how the rule set treated it. |
| servicee.g. HTTPS | string | Fortinet: "Name of service" — the service object the session matched. | A friendlier view of the destination port; SSH or RDP from outside is the usual thing to look for. |
| usere.g. alice | string | Fortinet: "User name" — the authenticated user, when FortiGate knows one (firewall authentication, SSL VPN, FSSO). | Ties traffic to a person; absent for most traffic unless user identification is configured. |
| msge.g. IPsec phase 1 error | string | Fortinet: "Log message" — the human-readable text of the event. | Read it, but filter on logid: the wording can change between FortiOS versions. |
| remipe.g. 185.220.101.42 | IP address | Fortinet: "Remote IP" — on VPN events, the peer address of the IPsec negotiation. | Phase 1 errors from many different remote addresses, or many from one, are attempts against the VPN rather than a broken tunnel. |
| attacke.g. SQL.Injection.Generic | string | Fortinet: "Attack Name" — the IPS signature that matched. | Search the signature name in FortiGuard's encyclopedia for the CVE it covers; then check whether the destination runs that software. |
| severitye.g. critical | string | Fortinet: "Severity of the attack" — the IPS signature's rating. | A critical signature that was only detected, not blocked, is the case to escalate. |
| viruse.g. Cobalt-Strike.Beacon | string | Name of the malware the antivirus engine matched, on utm virus logs. | A named implant such as a Cobalt Strike beacon blocked on its way to a host means someone tried to deliver it — check the destination for other signs of compromise. |
Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.
What it records
FortiOS writes every log message as a line of key=value pairs. The type and subtype say what kind of message it is — traffic/forward for a session through the firewall, event/vpn or event/user for something that happened on the device, utm/ips or utm/virus for a verdict of a security profile — and the logid names the exact message, as Fortinet explains in its log ID numbers page.
Every message carries the device (devname, devid, vd), the time (date, time, tz, eventtime) and its level. Traffic logs add the five-tuple (srcip, srcport, dstip, dstport, proto), the matched policyname, the service and the action. Security-profile logs add what was detected — attack and severity for IPS, virus for antivirus — and VPN events add the peer (remip) and the tunnel. The malicious sample on this page has one of each: an IPsec phase 1 error from an internet address, a denied SSH session, an IPS block of a SQL injection and an antivirus block of a Cobalt Strike beacon.
Where to get it
- On the device. Log & Report shows forward traffic, events and security-profile logs; each view can be downloaded. Memory and disk retention on small models is short.
- Syslog.
config log syslogd settingsends the samekey=valuelines to a collector; this is how most SIEMs receive them, often with a syslog header in front ofdevname=. - FortiAnalyzer. Keeps longer history across devices and exports logs in the same field names.
- Policy logging. Allowed traffic is logged only on policies set to log all sessions; check before an incident that the policies you care about do.
Parsing pitfalls
- Quoted and unquoted values. Strings are quoted (
action="deny"), numbers and addresses usually not (srcip=185.220.101.42). A value can contain spaces inside the quotes — split onkey=boundaries, not on spaces. - Fields vary by message. Each logid has its own field list; a VPN event has
remipandlocip, notsrcipanddstip. Do not expect a fixed schema across a file. - Time.
dateandtimeare local to the device,tzis the offset, andeventtimeis epoch — in nanoseconds in Fortinet’s own samples, in seconds in older exports and in the samples here. - Two “blocked” words. IPS uses
block, antivirus usesblocked, and traffic usesdeny— match the right value for the engine. - Syslog prefixes. A collector’s header (
Jan 15 2024 14:30:01 fortigate-fw) may sit before the first key; strip it before parsing pairs.
Detection ideas
- Security-profile verdicts:
type=utmwithsubtype=ipsandaction=block, orsubtype=virusandaction=blocked— the FortiGate UTM rule does exactly this. A critical IPS signature that was only detected is worse than one that was blocked. - Exposed management and remote access: inbound
denyandacceptto ports 22, 3389, 445 or the admin interface, from internet addresses. - VPN attempts: many IPsec phase 1 errors (logid 0101037124), or many SSL VPN login failures, from one
remipor across many. - Scanning: one
srciphitting manydstportvalues or manydstipvalues in minutes. - Known-bad sources: addresses in IPS logs that later appear in allowed traffic — check them with the IP blocklist checker.
The free browser analyzer reads FortiGate logs and runs these checks locally, and the log line explainer explains one line field by field.
Sending FortiGate to an LLM
One megabyte of this format is about 509,559 tokens on current Claude models and 375,345 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $1,019 in input tokens alone (prices of 2026-10-24). Estimate your own volume →
Detections and guides for FortiGate
Frequently Asked Questions
- How do I read a FortiGate logid?
- It is ten digits. Fortinet documents the first two as the log type (traffic logs begin with 00, event logs with 01), the next two as the subtype — all VPN events begin 0101 — and the last six as the message ID. 0000000013 is forward traffic; 0101037124 is an IPsec phase 1 error. Look the message ID up in the log message reference for its fields.
- Why do I only see security events and no allowed traffic?
- A firewall policy logs only what it is told to. With logging limited to security events, sessions that the policy allowed and no security profile flagged are never written. Set the policy to log all sessions (set logtraffic all in the CLI) on the policies you need to investigate, and make sure the syslog or FortiAnalyzer destination receives traffic logs.
- What is the difference between action block and blocked?
- They come from different engines. IPS logs use block when a signature hit was stopped; antivirus logs use blocked when an infected file was stopped. A rule that wants both verdicts has to match both values, which is how the FortiGate UTM rule on this site is written.
- Is date and time in UTC?
- No. date and time are written in the firewall's configured time zone, and the tz field gives its offset from UTC. eventtime is an epoch value, so it is the safer field for building a timeline across devices in different zones.
Analyze a FortiGate file in your browser
The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]