Here are the steps to enable the Azure Data Collector Debug Logs:
- 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
- Change the DefaultRolloverStrategy
from <DefaultRolloverStrategy max="2" />
to <DefaultRolloverStrategy max="10" />
- 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"/>
- Save the file and quit
:wq
- Trigger the azure data collection from the UI and wait for it to complete.
- 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