Example Logviewer configuration for Metadata Updater

By default, Ubisecure Logviewer includes three files only. More log files can be added as required. Metadata Updater generates logs and can be added to the log viewer

Step-by-step guide

The following examples will all show the relevant logs from Ubisecure Metadata Updater for the SP and IDP role of a server in a federation network using the logviewer for the current node.

  1. Edit ubilogin/webapps/logviewer/WEB-INF/filesource.properties . Increase the sequence numbers if merging with an existing filesource.properties file.

    ubilogin/webapps/logviewer/WEB-INF/filesource.properties
    # LogViewer Configuration
    # Define the logfile-querying class
    logviewer.logsource.classname = com.ubisecure.ubilogin.logsource.FileSource
    
    # Which one is default selection
    logsource.FileSource.default = EID2 SP Updates
    
    # SP update log
    logsource.FileSource.filetype.0.name = EID2 SP Updates
    logsource.FileSource.filetype.0.type = diag
    logsource.FileSource.filetype.0.path = C\:\\Program Files\\Ubisecure\\metadata-update/logs
    logsource.FileSource.filetype.0.filename = metadata_updater_eid2_sp.%YYYY-%MM-%DD.log
     
    # IDP update log
    logsource.FileSource.filetype.1.name = EID2 IDP Updates
    logsource.FileSource.filetype.1.type = diag
    logsource.FileSource.filetype.1.path = C\:\\Program Files\\Ubisecure\\metadata-update/logs
    logsource.FileSource.filetype.1.filename = metadata_updater_eid2_idp.%YYYY-%MM-%DD.log
  2. 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
  3. 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