Modify logging level of rhttpproxy and fdm services in ESXi 7.0 U3 and later
search cancel

Modify logging level of rhttpproxy and fdm services in ESXi 7.0 U3 and later

book

Article ID: 409095

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • This KB provides instructions on changing the default logging levels of the fdm and rhttpproxy services on ESXi hosts.
  • Starting with ESXi 7.0 U3, service configuration settings are stored in a dedicated configuration store database.

Environment

VMware ESXi 7.x

VMware ESXi 8.x

Resolution

By default, the logging level for both the fdm and rhttpproxy services is set to verbose. 
To modify the logging level, follow the steps outlined below:

rhttpproxy:
1) Backup the default rhttpproxy config from the configstore
/bin/configstorecli config default get -c esx -g services -k rhttpproxy -outfile /tmp/rhttp.json

2) The logging level can be changed by updaing the "level" string in the json file.

3) Restore the modified config back into the configstore.
/bin/configstorecli config current set -c esx -g services -k rhttpproxy -infile /tmp/rhttp.json

4) Restart the service to apply the changes.
/etc/init.d/rhttpproxy restart

fdm:
1) Create a config file with the required logging level.
vi /tmp/fdm.json

{
"log": {
  "level": "info"
}
}

2) Push the json config file into configstore.
configstorecli config current set -g cluster -c ha -k fdm_service -infile /tmp/fdm.json

3) Restart the fdm service to apply the changes.
/etc/init.d/vmware-fdm restart

Note:
The following logging levels are available for the services: none | quiet | panic | error | warning | info | verbose | trivia.

Additional Information