Add a device
Forward FortiGate logs to FortiLogger over syslog.
New Device Identification
FortiOS 5.4.0 and later are supported.
Important Note: Within the scope of Law No. 5651, the time of signing and backing up logs is taken into account by the FortiGate device. Please make sure that the FortiGate device’s date and time settings are correct.
FortiGate Syslog Redirect Process (Method I)
For FortiGate Firmware 5.4.0 and above, you can enter the IP Address of the computer where FortiLogger is installed from the Log & Report > Log Settings page as follows.
Note: If you want to add your FortiGate devices in remote locations to the FortiLogger at the central server, you need a Site to Site Vpn structure. How to redirect logs in Site to Site Vpn structures is explained in the 2nd method. If there is no Site to Site Vpn, you need to open the 514/UDP port to the FortiLogger server through your central FortiGate device.

FortiGate Syslog Redirect Process (Method II)
As an alternative to the GUI, you can enter the following commands on the console:
config log syslogd setting
set status enable
set server fortilogger_ip_address
end

Syslog Redirect over Site to Site Vpn (Source IP)
To enter a Source IP you can enter the following commands:
config log syslogd setting
set status enable
set server fortilogger_ip_address
set source-ip source_ip_address(local leg IP address you gave access for the Site to Site Vpn)
end

FortiLogger Device Integration
1 - Determining the Device to Record
After completing the log routing on FortiGate, follow the steps below:
- Log in to the web interface opened at http://local\_ip\_address:5000.
- Open Device > Device Settings page
- Under the Unregistered Devices tab, the device you referred will appear.
Note: It takes between 1 and 5 minutes after the routing process for the device to appear under the Unregistered Devices tab. If the device is not displayed during this time, check your syslog forwarding settings and FortiGate log sending.

2 - Making Device Settings
After clicking the Register button, enter the device information on the left and click the Update Device button again.

3 - Portal User Verification
At this stage, you need to log in with the membership information you created via FortiLogger Portal. If the verification fails, the Don’t have an account? Sign up link appears in the window; if you have not registered before, you can register with this link.

4 - Device Activation and Trial Start
If you do not have a license key for your device, you can create a license for your device through FortiLogger Portal after starting the 30-day trial version. For this process, you can review the licensing document.
After this stage, you can use all the features of FortiLogger during the specified trial period.

Important note: To license your device, you must first register it as a trial version, then FortiLogger Portal.
Note: Reports will start generating at least one hour after device integration.
Log Filter Rules
After you register the device you can decide which logs are stored from the device edit panel. When you edit a registered device on Device > Device Settings, the Logs section shows Reserved Disk Quota, When allocated disk space is full (Overwrite or Stop Logging) and the warning mail options. For the details of the quota setting see Disk quota, and for the warning mails see Notifications.
The Log Filter button in the same section lets you drop certain logs without storing them, or store only certain logs. The button becomes active when a registered device is being edited. A device with the filter on shows a Log filter on label in its row.
Important note: Logs dropped by the filter are never stored and cannot be recovered. Do not enable it if you are legally required to retain logs (e.g. Law No. 5651). Reports are also built only from stored logs: while the filter is on, totals, top lists and charts in this device’s reports do not include the dropped logs.
To define the filter, in the Log Filter window:
- Choose the mode from the Logs matching a rule list: Store only these (logs that match no rule are dropped) or Do not store these (logs that match a rule are dropped).
- With Add rule, pick a Field for each rule and enter its Values.
- The fields are Source interface (srcintf), Destination interface (dstintf), Log type (type), Log subtype (subtype), Action (action), Policy ID (policyid), Service (service), Source IP (srcip), Destination IP (dstip) and VDOM (vd).
- Values are suggested from the device’s recent logs; type one that is not listed and press Enter.
- In Store only these mode you can tick Still store logs that carry none of the rule fields (event logs such as VPN, admin login).
- Click Save and confirm in the Confirm log filter window with I understand, save the filter.
Values match exactly and are case-insensitive; a log matching any rule counts as a match. The filter takes effect within 1 minute. To remove it, use Remove filter in the Log Filter window; all logs are stored again within 1 minute.
Add a device video
Was this page helpful?
Thanks for your feedback!