Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


log (Security Policies)


Hierarchy Level


Log traffic information for a specific policy. Traffic information is logged when a session begins (session-init) or closes (session-close).


You must configure security policy for the session using the set security policies from-zone zone-name to-zone zone-name policy policy-name then log session-close command to list all the applications and nested applications in Application Tracking on J-Web using the on-box reporting feature.



Start logging traffic when the session ends.


Start logging traffic when the session begins.

Required Privilege Level

security—To view this statement in the configuration.

security-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.5.