Unable to change logging for WCP service from debug to info
search cancel

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:

  1. Open SSH session to VCSA.

    Note: If after logging in, you see Command> then type: shell

  2. Stop the WCP Service with the following command:

    service-control --stop wcp

  3. Take a backup of the current configuration with the following command

    cp /etc/vmware/wcp/wcpsvc.yaml /etc/vmware/wcp/wcpsvc.yaml.backup

  4. 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

  5. Save the file

  6. 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. 


  • More information about VI: An introduction to the vi editor