Example Logviewer configuration
By default, Ubisecure Logviewer includes three files only. More log files can be added as required.
Step-by-step guide
The following examples will all show the relevant logs from Ubisecure SSO and Ubisecure CustomerID using the logviewer for the current node. The example is for CustomerID 4.x - modify log file names for CustomerID 5.x
Edit ubilogin/webapps/logviewer/WEB-INF/filesource.properties
ubilogin/webapps/logviewer/WEB-INF/filesource.properties# LogViewer Configuration # Define the logfile-querying class logviewer.logsource.classname = com.ubisecure.ubilogin.logsource.FileSource # LogSource configuration for FileSource # logsource.FileSource.default = UAS Audit # UAS Logfiles logsource.FileSource.filetype.0.name = UAS Audit logsource.FileSource.filetype.0.type = audit logsource.FileSource.filetype.0.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\ubilogin/logs logsource.FileSource.filetype.0.filename = uas3_audit.%YYYY-%MM-%DD.log logsource.FileSource.filetype.1.name = UAS Diag logsource.FileSource.filetype.1.type = diag logsource.FileSource.filetype.1.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\ubilogin/logs logsource.FileSource.filetype.1.filename = uas3_diag.%YYYY-%MM-%DD.log # UAS/SatuHetu Audit log logsource.FileSource.filetype.2.name = SatuHetu Audit logsource.FileSource.filetype.2.type = csv logsource.FileSource.filetype.2.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\ubilogin/logs logsource.FileSource.filetype.2.filename = uas3_satuhetu_audit.%YYYY-%MM-%DD.log logsource.FileSource.filetype.2.info = METHOD ID, RESULT, SATU, HETU, CACHE, TIME #CustomerID diag logsource.FileSource.filetype.3.name = eIDM Diag logsource.FileSource.filetype.3.type = csv logsource.FileSource.filetype.3.path = C\:\\Program Files\\Ubisecure\\customerid\\application\\logs logsource.FileSource.filetype.3.filename = eidm2_diag_%YYYY-%MM-%DD.log #CustomerID audit logsource.FileSource.filetype.4.name = eIDM Audit logsource.FileSource.filetype.4.type = csv logsource.FileSource.filetype.4.path = C\:\\Program Files\\Ubisecure\\customerid\\application\\logs logsource.FileSource.filetype.4.filename = eidm2_audit_%YYYY-%MM-%DD.log # CustomeerID 4.x ONLY Tomcat access log - application server access log - shows all http requests #localhost_access_log.YYYY-MM-DD.txt logsource.FileSource.filetype.5.name = eIDM Access logsource.FileSource.filetype.5.type = csv logsource.FileSource.filetype.5.path = C\:\\Program Files\\Ubisecure\\customerid\\application\\logs logsource.FileSource.filetype.5.filename = localhost_access_log.%YYYY-%MM-%DD.txt # CustomerID 4.x Tomcat catalina log - application server log #catalina.YYYY-MM-DD.log logsource.FileSource.filetype.6.name = eIDM Catalina logsource.FileSource.filetype.6.type = csv logsource.FileSource.filetype.6.path = C\:\\Program Files\\Ubisecure\\customerid\\tomcat\\logs logsource.FileSource.filetype.6.filename = catalina.%YYYY-%MM-%DD.log # CustomerID 4.x Tomcat stderr log - application server error log #commons-daemon.YYYY-MM-DD.log logsource.FileSource.filetype.7.name = eIDM Stderr logsource.FileSource.filetype.7.type = csv logsource.FileSource.filetype.7.path = C\:\\Program Files\\Ubisecure\\customerid\\tomcat\\logs logsource.FileSource.filetype.7.filename = commons-daemon.%YYYY-%MM-%DD.log # SSO Tomcat access log - application server access log - shows all http requests #sso_access_log.YYYY-MM-DD.txt logsource.FileSource.filetype.8.name = SSO Access logsource.FileSource.filetype.8.type = csv logsource.FileSource.filetype.8.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\tomcat\\logs logsource.FileSource.filetype.8.filename = sso_access_log.%YYYY-%MM-%DD.txt # SSO Tomcat catalina log - application server log #catalina.YYYY-MM-DD.log logsource.FileSource.filetype.9.name = SSO Catalina logsource.FileSource.filetype.9.type = csv logsource.FileSource.filetype.9.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\tomcat\\logs logsource.FileSource.filetype.9.filename = catalina.%YYYY-%MM-%DD.log # SSO Tomcat catalina log - application server log #catalina.YYYY-MM-DD.log logsource.FileSource.filetype.10.name = SSO Stdout logsource.FileSource.filetype.10.type = csv logsource.FileSource.filetype.10.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\tomcat\\logs logsource.FileSource.filetype.10.filename = catalina.%YYYY-%MM-%DD.log # SSO Tomcat stderr log - application server error log #commons-daemon.YYYY-MM-DD.log logsource.FileSource.filetype.11.name = SSO Stderr logsource.FileSource.filetype.11.type = csv logsource.FileSource.filetype.11.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\tomcat\\logs logsource.FileSource.filetype.11.filename = commons-daemon.%YYYY-%MM-%DD.log # SSO Management application audit trail - shows changes made to configurations in ubilogin management # management_audit.YYYY-MM-DD.log logsource.FileSource.filetype.12.name = Management Audit logsource.FileSource.filetype.12.type = csv logsource.FileSource.filetype.12.path = C\:\\Program Files\\Ubisecure\\ubilogin-sso\\ubilogin\\logs logsource.FileSource.filetype.12.filename = management_audit.%YYYY-%MM-%DD.log
Deploy changes to the SSO application server
cd ubisecure-sso/ubisecure/config config/tomcat/update.sh OR cd ubisecure-sso\ubisecure\config tomcat\update.sh
- During future system upgrades, remember to copy the filesource.properties from the ubisecure-old directory.
Only logs of the current node are shown. Routing changes will be required to show logs from different nodes.
e.g. https://UAS_URL/logviewer2 → goes to node two logviewer
Related articles