Skip to main content
tana
Staff
Staff
July 28, 2022

Technical Tip: How to show accessed URLs and resolve hostnames in forward traffic log

  • April 16, 2026 at 12:14 PM
  • 0 replies
  • 11045 views
Description

 

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.

 

Scope

 

FortiGate.

 

Solution

 

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.

 

tana_0-1658987764675.png

 

Make sure this setting is applied:

 

conf log gui-display
get
    set resolve-hosts enable 

end 

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT