Skip to main content
Wallerson
Staff
Staff
April 2, 2026

Techinical Tip: How to enable the Per Local-in Policy Logging option

  • April 2, 2026
  • 0 replies
  • 250 views
Description

This article describes an enhancement of local-in traffic.

  • Logging can be enabled per local-in policy.
  • Benefit: Flexibility. Before this enhancement, the local-in traffic logging was controlled globally.
Scope FortiGate v7.6.
Solution

Make sure the local traffic log is enabled:

 

config log memory filter

    set local-traffic enable

end

 

Or:

 

config log disk filter

    set local-traffic enable

end

config log fortianalyzer filter

    set local-traffic enable

end

 

Or:

 

config log fortiguard filter

    set local-traffic enable

end

 

Enable the local-in-policy logging:

 

config log setting

    set local-in-policy-log {enable | disable} --> Default action is 'disable'.

end

 

Edit the local-in-policy desired and enable the log:

 

config firewall local-in-policy

    edit <id>

        set logtraffic {enable | disable} --> Default action is 'disable'.

        end

end

 

 Note: The 'logtraffic' in the local-in-policy will not be displayed if 'local-in-policy-log' in 'config log settings' is disabled.

 

It can also be enabled via the GUI. Go to Log & Report, Log Settings, enable 'Per policy':

 

01.png

 

The 'Log allowed traffic' option will be displayed in the local-in-policy:

 

02.png

 

The log violations will be recorded in the local traffic logs:

 

03.png