vRealize Business for Cloud - How to Generate Debug Logs for Azure Data Collector
search cancel

vRealize Business for Cloud - How to Generate Debug Logs for Azure Data Collector

book

Article ID: 321861

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

vRealize Business for Cloud - How to Generate Debug Logs for Azure Data Collector

Environment

VMware vRealize Business for Cloud Advanced 7.x
VMware vRealize Business for Cloud Standard 7.x

Cause

When generating the default logs for the Azure Data Collector there is further information needed.

Resolution

Here are the steps to enable the Azure Data Collector Debug Logs:
  1. Modify the below Azure data collector log4j2 file
vi /usr/local/tomcat/itbm-data-collector/webapps/itfm-cloud-azure-dc/WEB-INF/classes/log4j2.xml
  1. Change the DefaultRolloverStrategy
          from <DefaultRolloverStrategy max="2" />
to <DefaultRolloverStrategy max="10" />
  1. Add the below two Logger statements after <Loggers> tag
     <Loggers>
         <Logger name="com.vmware.itfm.cloud.datacollector.azure.api" level="debug"/>
         <Logger name="com.vmware.itfm.cloud.datacollector.azure.commons" level="debug"/>
  1. Save the file and quit
:wq
  1. Trigger the azure data collection from the UI and wait for it to complete.
  2. We can monitor that debug logs are being printed by tailing azure data collector log
tail -f /var/log/vrb/data-collector/itfm-azure-dc.log