Unable to change logging for WCP service from debug to info
book
Article ID: 374311
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
When setting up a new syslog system you may see many debug logs coming from VMWare WCP. Changing the logging level from Configure > System > Advanced System Settings does not affect the logs sent.
Cause
WCP logging level is set differently from other logs and must be changed directly from /etc/vmware/wcp/wcpsvc.yaml file
Resolution
You can set the logging level of WCP from the command line with the following steps:
Open SSH session to VCSA.
Note: If after logging in, you see Command> then type: shell
Stop the WCP Service with the following command:
service-control --stop wcp
Take a backup of the current configuration with the following command
Edit /etc/vmware/wcp/wcpsvc.yaml using vi (Note: If you are not familiar with vi, information has been provided in the "additional Information" section)
change this line:
level: debug
to read like this:
level: info
Save the file
Start the WCP Service with the following command:
service-control --start wcp
Additional Information
If are using TKGS/Containers/Workloads/Workload Management then you won't be able to start/stop containers or provision new containers while the WCP service is stopped.