Created on
08-10-2024
01:39 PM
Edited on
03-18-2025
07:22 AM
By
akumar02
Description | This article describes how to configure Syslog on FortiGate. |
Scope | FortiGate. |
Solution |
Below are the steps that can be followed to configure the syslog server:
From the GUI:
If it is necessary to customize the port or protocol or set the Syslog from the CLI below are the commands:
config log syslogd setting set status enable set server "192.168.1.19" set mode udp set port 514 end
To establish the connection to the Syslog Server using a specific Source IP Address, use the below CLI configuration:
config log syslogd setting set mode udp set port 514
The source '192.168.1.1' can be any IP address of the FortiGate's interface that can reach the syslog server IP of '192.168.1.19' in the above example and the same info can be found in the routing table.
Note: If the Syslog Server is connected over IPSec Tunnel Syslog Server Interface needs to be configured using Tunnel Interface using the following commands and make sure the Syslog server IP is a part of Phase-2 selectors.
config log syslogd setting set mode udp set port 514 set interface-select-method specify set interface <IPsec Tunnel Interface>
The ping and ping-options command from the CLI can be used to check basic connectivity to the Syslog server from a specific source IP.
exec ping-options source 192.168.1.1 --- 192.168.1.19 ping statistics ---
To filter the logs according to severity: Technical Tip: Setting Filter Based on Severity for External Syslog in FortiGate. Technical Tip: Standard procedure to format a FortiGate Log Disk, log backup from disk Technical Tip: How to download Logs from FortiGate GUI |