This article describes how to show and resolve hostnames in forward traffic log.
By default, the FortiGate will only log the IPs and not resolve them to their corresponding domains, so the URL is not visible in the logs.
For this reason, unknown domain names will be shown in Forward Traffic logs.
FortiGate.
To resolve the IP addresses to host names, apply the following settings. To enable the name resolution of the traffic log from the CLI, run the following commands:
conf log setting
set resolve-ip enable
end
To enable the name resolution of the traffic logs from GUI, go to Log & Report -> Log settings and toggle the Resolve Hostnames option. Starting from v7.2.x, it can be found under Log & Report -> Log Settings -> Global Settings.
Make sure this setting is applied:
conf log gui-display
get
set resolve-hosts enable
end
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.