This article is only relevant if you use authenticated sessions and a unique audit token per user! If there aren't any authenticated sessions and the audit token isn't explicitly set for every unique user, the result will be "1" (Result of awk: audittoken:-). Filtering SIDs or IPs does not help, since one user can have multiple of them.
Example: If a user browses to a site, closes the browser, reopens and returns to the site he will already have two Session IDs.
Sometimes it could be interesting how many unique users are connected trough a specified Virtual Host or Mapping.
At the moment there are no graphical statistics available in the Airlock Configuration Center to show this values. But you could get this information/values over the console by executing one of the following command chains.
Up to Airlock Version 4.2.6.x the log directory is located at /home/log/logviewer_current/airlock.
Execute the following command as root. Replace the Mapping name "techzone" to a valid value of your configuration.
Airlock 5.x
# cat /home/log/logviewer/Web-Requests/<date>.Access | awk '/mapping:techzone/ {print $40 $41}'| sort | uniq | wc -l
Airlock 4.2.x
# cat /home/log/logviewer_current/airlock/Web-Requests/<date>.Access | awk '/mapping:techzone/ {print $42 $43}'| sort | uniq | wc -l
You should get a value of unique users of the defined mapping.
If you have, for example, mappings with names "techzone" and "techzone-download" and you only want the number of unique users of the "techzone" mapping then you need to define your mapping name with a space at the end of name.
Example: ... awk '/mapping:techzone / ...
Execute the following command as root. Replace the Virtual Host name "techzone\.ergon\.ch" to a valid value of your configuration. You must escape the dots of the domain name with "\".
Airlock 5.0
# cat /home/log/logviewer/Web-Requests/<date>.Access | awk '/vhost:techzone\.ergon\.ch/ {print $40 $41}' | sort | uniq | wc -l
Airlock 4.2.x
# cat /home/log/logviewer_current/airlock/Web-Requests/<date>.Access | awk '/vhost:techzone\.ergon\.ch/ {print $42 $43}'| sort | uniq | wc -l
Hint: If your Virtual Host is configured with HTTP and HTTPS and you only want the number of unique users of HTTP or HTTPS, then you must explicitly define the port number as a part of the "grep" command.
If you get strange/impossible values, remove the last command "wc" of the command chain, to see which result are really returned.