Purpose
This guide explains how to forward logs from Fortinet FortiAnalyzer to Logsign USO over Syslog. FortiAnalyzer collects logs from the Fortinet devices registered to it and can relay them onward, so a single forwarding definition can carry records from several different Fortinet products at once. Logsign recognizes which product each relayed record actually came from and applies that product's own parser, so product-specific fields and event mappings resolve correctly instead of everything being read as FortiGate traffic.
Prerequisites
- A FortiAnalyzer with administrative access and the Fortinet devices whose logs you want to collect already registered to it.
- Network connectivity from FortiAnalyzer to Logsign over Syslog (UDP/TCP, port 514 by default, or your organization's configured Syslog port).
Step 1: Configure Log Forwarding on FortiAnalyzer
In the FortiAnalyzer administrative interface, create a log forwarding entry that sends logs to the Logsign collector's IP address and port in Syslog format. The exact menu path depends on your FortiAnalyzer version; consult your Fortinet administrator or Fortinet's own documentation for the log forwarding screen on your release. This step was not independently re-verified against a live FortiAnalyzer console during this research. Only the log format FortiAnalyzer actually sends and the Logsign-side parser were confirmed from source.
Forward the logs in their original key-value form rather than reformatting them. Logsign identifies the originating product from fields the device itself writes, so a transformed or reduced payload can prevent the correct product parser from being selected. If FortiAnalyzer prepends its own header to the relayed record, Logsign strips that header before parsing, so no special handling is required on the FortiAnalyzer side.
Step 2: Add FortiAnalyzer as a Device in Logsign USO
- In Logsign USO, go to Data Collection and click +Device.
- Select Syslog as the collection type and FortiAnalyzer as the device/plugin.
- Enter the FortiAnalyzer's IP address as the source, give the device a name, and save.
Define the source once for the FortiAnalyzer itself. You do not add a separate device for each Fortinet product behind it; the records are separated automatically after they arrive.
How Relayed Products Are Recognized
Every record relayed through FortiAnalyzer is inspected before parsing. Logsign first reads the device serial number the record carries in its devid field, because the serial's prefix identifies the product family.
| Serial prefix | Product | EventSource Prefix ID |
|---|---|---|
| FV, FWB | FortiWeb | 3056 |
| FE, FML | FortiMail | 3055 |
| FSA | FortiSandbox | 4032 |
| FAC | FortiAuthenticator | 4068 |
When a record carries no recognizable serial, Logsign falls back to the shape of the record itself. A FortiWeb record is identified by its log identifier together with FortiWeb-specific fields such as the requested URL or server pool name. A FortiMail record is identified by its comma-separated date and time header. A FortiAuthenticator record is identified by its category, subcategory and type identifier appearing together.
FortiGate records, and any record whose product cannot be determined, are parsed by the FortiAnalyzer parser itself (EventSource Prefix ID 4245), which reads the FortiGate key-value schema. The same applies when a record is routed to a product but that product's parser does not accept the record's layout.
FortiAuthenticator Records Relayed Through FortiAnalyzer
FortiAnalyzer can relay FortiAuthenticator events in two layouts. The first is FortiAuthenticator's own syslog layout, with category, subcategory and typeid fields. The second is FortiAnalyzer's key-value layout, which starts with date= and time= and carries logid, type and subtype instead. Logsign parses both layouts with the FortiAuthenticator parser (EventSource Prefix ID 4068). A key-value record is accepted when its devid starts with FAC.
In the key-value layout, fields are written to Logsign columns as follows:
| FortiAnalyzer field | Logsign field |
|---|---|
logid |
Log.ID (also used to look up the event mapping) |
type |
Event.Category |
subtype |
Event.SubCategory |
level |
Severity.ID, Severity.Name |
user |
Source.UserName |
userip, or nas when userip is empty |
Source.IP |
action |
Event.Action |
status |
Event.Info |
logdesc |
Event.Name |
msg |
Event.AdditionalInformation |
faclogindex |
Event.TrackID |
devname |
EventSource.Name |
devid |
EventSource.ID |
vd |
Virtual.Domain |
tz |
Time.Zone |
timestamp |
Time.Generated |
TACACS+ events are recognized from the nas field. When its value has the form FAC_TAC_PLUS:<ip>, Logsign writes the IP address to NAS.IP, sets Auth.Protocol to TACACS+ and copies the action value to Auth.Type. In this case Source.IP comes only from userip. The available samples contained TACACS+ authentication events only. Authorization and accounting events use the same nas prefix but were not tested.
The event mapping (EventMap Context, Type and SubType) comes from the FortiAuthenticator event dictionary, keyed by logid. Some log IDs cover both successful and failed logins, for example the admin GUI login event 20994. When such an event maps to a Login SubType and status is Failed, Logsign sets the SubType to Deny. A successful login therefore resolves to Identity / User / Login, and a failed one to Identity / User / Deny.
Notes and Limits
- Product detection reads the record's own top-level key-value pairs, not the raw text of the line. Device management events that quote a foreign serial number inside a message body therefore do not cause a record to be routed to the wrong product.
- The
dev_idfield is deliberately not used for detection, because on FortiWeb it carries a certificate hash rather than a device serial. - Each relayed product keeps its own EventSource Prefix ID, so searches and reports can distinguish FortiWeb, FortiMail, FortiSandbox and FortiAuthenticator events from FortiGate events even though they all arrive through the same FortiAnalyzer source.
- For FortiAuthenticator records, EventSource.IP stays the IP address of the device that sent the syslog message (FortiAnalyzer). The FortiAuthenticator IP in the
reporting_ipfield is not written to EventSource.IP. - If you collect a Fortinet product through FortiAnalyzer whose records are not being recognized, contact Logsign support with a raw sample so the detection rules can be extended.