How to collect the vIDM logs from CLI (Within vIDM VA) and enable debug if needed.
search cancel

How to collect the vIDM logs from CLI (Within vIDM VA) and enable debug if needed.

book

Article ID: 371818

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Collect Log Information:
This article provides information on how to collect logs for vIDM using CLI
If it's a clustered environment, you will need to run it on each of the nodes

Environment

VMware Identity Manager 3.3.x

Resolution

Collecting the log file bundle

Take SSH session to vIDM nodes and run below command

/usr/local/horizon/scripts/gatherLogs.hzn
   The above will export the logs and config and save it under '/opt/vmware/horizon/workspace/temp/vmlogs'

/usr/local/horizon/scripts/getProtectedLogFiles.hzn exportProtectedLogs
    The above will export messages and boot.log
    
/usr/local/horizon/scripts/getProtectedLogFiles.hzn exportJournalLogs
    The above will export the complete Journal Logs

Incase you want to enable the Debug logging, you can follow the below steps: 

Change the log level from INFO to DEBUG. This can be done by following these steps:

  • Login to vIDM node (If Cluster Environment need to connect to all the 3 nodes) as root user.
  • Navigate to the path /usr/local/horizon/conf.
  • Open and edit the saas-log4j.properties file.
  • Change the line rootLogger.level=INFO to rootLogger.level=DEBUG.
  • Restart the service using the command service horizon-workspace restart.

NOTE: Make sure to revert the logging back to INFO to reduce the volume of logs generated.