Statistics log is the same as the audit log, except the personal identifying user principal information is not shown.
...
Statistics Log is disabled by default to maximize system performance.
To enable Statistics Log please edit the configuration file (logback.xml replacing log4j.properties since SSO 9.0)
Configuring via logback.xml file (SSO 9.x and newer)
The logback.xml file is located in ubilogin customization directory (ubilogin-sso/ubilogin/custom/logging/logback.xml) and contains the configuration of all SSO logging. Learn about Logback configuration file syntax.
To enable
...
Statistics Log please add statistics=<level>
to the turboFilter
configuration, e.g. for level INFO
it should looks like:
Code Block | ||
---|---|---|
| ||
<configuration>
<turboFilter class="com.ubisecure.common.logging.MarkerBasedLogFilter">
<DefaultLevels>audit=info;tech=info;diag.*=info;statistics=info</DefaultLevels>
</turboFilter>...</configuration> |
This way, all entries for the statistics
marker will automatically be added to the logs if any appender includes the marker, e.g. for the uas_statistics log file:
Code Block | ||
---|---|---|
| ||
More examples of Logback configuration can be found in Diag log description section.
Configuring via log4j.properties file (SSO 8.x)
To enable Statistics Log please edit the following file with a text editor:
...
Code Block | ||
---|---|---|
| ||
log4j.logger.ubilogin.statistics = INFO, Statistics |
Enabling in Log Viewer
Edit the following file with a text editor to enable the log in the Log Viewer:
...
Code Block | ||
---|---|---|
| ||
UAS Statistics logsource.FileSource.filetype.XX.name = UAS Statistics logsource.FileSource.filetype.XX.type = statistics logsource.FileSource.filetype.XX.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\ubilogin/logs logsource.FileSource.filetype.XX.filename = uas3_statistics.%YYYY-%MM-%DD.log |
Redeploy and restart
To apply configuration changes please redeploy and restart the Ubisecure SSO by executing:
...
Code Block | ||
---|---|---|
| ||
/usr/local/Ubisecure/ubilogin-sso/ubilogin/webapps/config\/tomcat\/update.cmdsh |