The Cloud SWG pods are based on Edge SWG secure-web gateways (aka proxy devices).
In the Edge SWG devices many type of transaction exist how not all of them are visible in the Cloud SWG access logs.
In this KB article we will create a list of possible transaction (relevant for the customer flows) and indicate which are stored in the access logs, how and when.
Cloud SWG
Edge SWG transactions are anytime a service is handling a client request:
All of this information is of great interest to understand the request processing on the device and for troubleshooting policies but the access logs are recording transactions that are "relevant" to the client-server exchanges only, namely:
The access logs are written at the end of the transaction (once it is complete) so with the tcp and ssl tunnel or https transaction time it is possible to approximate a specific request duration.
For example you can see 2 downloads in [1] where the "tcp://" (http.proxy transactions as the request was running from an Explicit proxy locations) time indicate the approximate download start and the "https://" (https.forward-proxy transaction) indicates the approximate download end.
Looking at the data in [1] we have:
And we can then calculate
The above calculation actually match the curl output for both files downloads:
curl --insecure -o /dev/null -x proxy.threatpulse.com:8080 https://releases.ubuntu.com/23.10/ubuntu-23.10.1-desktop-amd64.iso
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4934M 100 4934M 0 0 18.5M 0 0:04:26 0:04:26 --:--:-- 28.8M
curl --insecure -o /dev/null -x proxy.threatpulse.com:8080 https://releases.ubuntu.com/23.10/ubuntu-23.10-netboot-amd64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 111M 100 111M 0 0 9712k 0 0:00:11 0:00:11 --:--:-- 15.8M
[1] Access log view from the Cloud SWG portal for tcp and https transactions to download an Ubuntu ISO