Khidzir_MN
Staff
Staff
Description This article describes how to enable a traffic log for version 7.0 and later.
Scope FortiWeb version 7.0 and later.
Solution

Traffic logging default behavior change in version 7.0. 

 

In version 7.0 and later,  in order for the traffic log to work, it should be enabled via 'Other Log Settings' under Log&Report, and also in server policy settings.

 

Refer to the release note for more details.

 

https://fortinetweb.s3.amazonaws.com/docs.fortinet.com/v2/attachments/85bf9d0d-7a1a-11ec-bdf2-fa163e...

 

Enable the setting on the respective policy (default is disabled).

 

GUI:

 

1) Enable the 'Enable traffic log' under Log&Report -> Other Log Settings.

 

Picture11.png

 

2) Enable the 'Enable traffic log' under Policy -> Server Policy -> Policy Name.

   Picture12.png 

CLI:

 

# config server-policy policy
     edit "Test_Policy"
        set vserver Test_VS
        set server-pool Test_Pool
     end
        set tlog enable <---
     next
end

 

Refer to the below document for more information on the configuration.

https://docs.fortinet.com/document/fortiweb/7.0.1/cli-reference/338812/server-policy-policy

Contributors