Skip to main content
Wallerson
Staff
Staff
Apr 2, 2026 5:42 AM UTC

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

  • Apr 16, 2026 12:58 PM UTC
  • 0 replies
  • 610 views
  • Translate All
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

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024