Connection logging modes
A connection logging mode is a connection monitoring approach that
-
provides two distinct timing options for capturing connection events,
-
handles blocked traffic differently than allowed traffic, and
-
requires optimization choices to balance performance with information completeness.
Connection logging timing and exceptions
You can log a connection at its beginning or its end, with specific exceptions for blocked traffic:
-
Blocked traffic: Because blocked traffic is immediately denied without further inspection, only beginning-of-connection events are typically available for logging; there is no unique end-of-connection to log.
-
Blocked encrypted traffic: When you enable connection logging in a decryption policy, the system logs end-of-connection rather than beginning-of-connection events. This occurs because the system cannot determine if a connection is encrypted with the first packet and therefore cannot immediately block encrypted sessions.
To optimize performance, log either the beginning or the end of any connection, but not both. Monitoring a connection for any reason forces end-of-connection logging. For a single non-blocked connection, the end-of-connection event contains all information present in the beginning-of-connection event, as well as data gathered over the duration of the session.
The table presents differences between beginning and end-of-connection events, along with the advantages of logging each.
|
Attributes |
Beginning-of-Connection Events |
End-of-Connection Events |
||
|---|---|---|---|---|
|
Can be generated... |
When the system detects the beginning of a connection (or, after the first few packets if event generation depends on application or URL identification). |
When the system:
|
||
|
Can be logged for... |
All connections except those blocked by the decryption policy. |
Most connections. |
||
|
Contain... |
Only information that can be determined in the first packet (or the first few packets, if event generation depends on application or URL identification). |
All information in the beginning-of-connection event, plus information determined by examining traffic over the duration of the session; for example, the total amount of data transmitted or the timestamp of the last packet in the connection.
|
||
|
Are useful... |
If you want to log:
|
If you want to:
|