How to Enable vCO 5.1.x to log API requests

When working with new integrations that utilize the vCenter Orchestrator (vCO) REST API you may want additional logging on the vCO side to see what is happening. I came across this need on a recent project. By default, vCO is logging workflow and webview activities but not API calls. This short article walks you through the steps necessary to enable such logging.

The following steps will enable additional logging on your vCO server. With these changes, be sure that you manage the log files that get generated...

  1. On your vCO server, go to the following folder:
  2. Edit the "server.xml" file
  3. Uncomment this section:
      <Valve className="org.apache.catalina.valves.AccessLogValve"
                  prefix="localhost_access_log." suffix=".log"
                  pattern="common" directory="${jboss.server.home.dir}/log"
                  resolveHosts="false" />
  4. Uncommenting that line will result in the creation of a "localhost_access_log..log file. This file will log header details about each request
  5. Since you likely want more detail than just headers, uncomment the following line too:
    <Valve className="org.apache.catalina.valves.RequestDumperValve" />
  6. Uncommenting that line will result in API related call details showing up in the server.log file
  7. Now save the file and restart the vCO Server service

The log files for vCO 5.1.x are found in /app-server/server/vmo/log


NUC Lab Kit

Below are my thoughts for a vSAN nuc lab. Since I already have cables, not including them here. I ordered (and received by Nov 30, 2016)
3 x nuc, 3 x 32GB Crucial mem, 3 x Toshiba NVMe drive, 3 x Startech USB to GB NIC, and 3 x Crucial 1TB SSD. I've also been very happy with my Cisco SG300-10 so I bought one more since my existing one only has one port available. Each of the items listed here are linked below - all were purchased using the provided links below.
single NIC (See this post for details on using the USB -> GB NIC item listed below

I stayed with the i5 for the power consumption and form factor vs. the i7 Skull Canyon ;)



Experts Exchange