There are several services running on the Provider VM and Agent VM that are central to the operation of VMware Data Services Manager. You can control the log level for these services using the VMware Data Services Manager API.
VMware Data Services Manager logs messages at the following levels (less to more verbose): OFF, ERROR, WARNING, INFO, DEBUG, TRACE.
By default, VMware Data Services Manager logs INFO-level messages for the core services. You can use the API to increase or decrease the log level for an individual service running on the VM.
You must be able to identify the IP address of the Provider VM or the Agent VM for which you want to update the service log levels.
You can dynamically update the log level of these core services running on a Provider VM:
Logging Service Name | Description |
---|---|
PROVIDER | Provider service |
MONITORING | Monitoring service |
APMS | Appliance management service |
UPDATE | Update manager service |
If your VMware Data Services Manager installation has a single Provider node, invoke the /appliance/loggers/configure-self
API endpoint:
POST https://<provider-ip-address>/appliance/loggers/configure-self
If your VMware Data Services Manager installation is running in Provider High Availability mode, the /appliance/loggers/configure-all
endpoint updates the service log level on all Provider nodes in the HA cluster:
POST https://<provider-ip-address>/appliance/loggers/configure-all
Both API endpoints take the same request parameters; you provide the <service-name>
and <log-level>
for the service whose log level you wish to update:
{
"service": "<service-name>",
"packageLogLevels": [
{
"packageName": "com.vmware.tdm",
"logLevel": "<log-level>"
}
]
}
You can dynamically update the log level of these core services running on a Agent VM:
Logging Service Name | Description |
---|---|
ONBOARDING | Onboarding service |
MGMT_PLANE | Management plane service |
MONITORING | Monitoring service |
UPDATE | Update manager service |
Invoke the /onboarding/api/agent/loggers
API endpoint to change the log level of a service:
POST https://<agent-ip-address>/onboarding/api/agent/loggers
Request parameters:
{
"packageLogLevels": [
{
"packageName": "com.vmware.tdm",
"logLevel": "<log-level>"
}
],
"service": "<service-name>"
}
Provide the <service-name>
and <log-level>
for the service whose log level you wish to update.