Find out login time of SAML users into WSS
search cancel

Find out login time of SAML users into WSS


Article ID: 176512


Updated On:


Cloud Secure Web Gateway - Cloud SWG


  • Symantec Web Security Service (WSS) does not have a pre-canned report indicating which users logged in at what time.
  • There is a lot of user-specific searches you could do, but nothing that will give you this time.
  • There are other approaches to get the same information from the available raw HTTP logs.


  • WSS with IPSEC, SEP or explicit Access methods
  • SAML Authentication enabled on WSS


Assuming that one can download and expand the raw logs to get the GZ formatted files, one can run the following script against the logs to display the date and time of login, the IP address and the username. The assumption is that

  1. an enviroment exists against which the scripts can be run - on Windows, this would require CYGWIN installation, or it can be done on any MacOS or Linux platform by default
  2. the system the scripts are running against have access to the raw GZ files downloaded
  3. you have access to the SAML Endpoint URL from the SAML configuration

In the example below, we downloaded the raw logs for customerID 66666 from 7-8am UTC and expanded the logs to get cloud_66666_20191209070000.log.gz. The SAML configuration showed the following endoint URL (ADFS IDP server) terminating in /adfs/ls/




Equiped with this information, run the following command to get the time the user logged in via SAML, along with the IP address:

[email protected] /cygdrive/d/Downloads/66666/091219
$ zgrep authentication_redirect_from_virtual_host cloud_66666_20191209070000.log.gz|grep \/adfs\/ls\/ |awk '{print $2 "     " $3  "     "  $6 "     "   $7}'|more

2019-12-09     07:00:02     nc1584
2019-12-09     07:00:11     nc0929
2019-12-09     07:00:12     nc0113
2019-12-09     07:00:13     nc2549
2019-12-09     07:00:18     nc5075
2019-12-09     07:00:24     nc5290
2019-12-09     07:00:29     nc4316
2019-12-09     07:00:28     nc0630
2019-12-09     07:00:31     nc4029
2019-12-09     07:00:40     nc0019
2019-12-09     07:00:42     nc5935