How to change the logging level of Aria Automation, Provisioning services
search cancel

How to change the logging level of Aria Automation, Provisioning services

book

Article ID: 345931

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This document  provides instructions to bump up the logging to granular level for components in the provisioning service. 

Environment

Aria Automation 8.x

Resolution

VCF-Support Will provide the class/component that  needs detailed logging which is needed to run through this document. 

 

  1. SSH into Aria Automation node and run the below command, Grab the client credentials (client ID and password)
    kubectl -n prelude describe configmaps provisioning-config
  2. Generate base64 of the credentials
     base64-encoded client_id_from_step1:password_from_step_1 
  3. Generate a Bearer token:
    curl --location --request POST 'https://{{ Aria_automation_URL }}/csp/gateway/am/api/auth/authorize' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'Authorization: Basic {{ Base64_from_step_3 }}' \
    --data-raw 'grant_type=client_credentials'
  4. Set logging level for the component provided by support
    curl --location --request PUT 'https://{{ Aria_automation_URLl }}/provisioning/api/log-configuration/{{ component_class_name_provided_by_support }}/DEBUG' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer {{ bearer token from Step 3 }}'