Friday, 11 March 2016

Changing Logging Location For vCenter 6.0

Written by Suhas Savkoor



By default your vCenter 6.0 logs are in the install directory.
C:\ProgramData\VMware\vCenterServer\logs\vmware-vpx
Now, if you do not want to have this location for logging, but a custom location, then you will have to make a few changes.

Perform the below steps:

1. Navigate to the below directory:
C:\ProgramData\VMware\vCenterServer\cfg\vmware-vpx
2. Make a copy of the vpxd.cfg file so that you can quickly restore if something goes wrong.
3. Stop VMware Virtual Center service from services.msc
4. Open the vpxd.cfg file using a notepad/wordpad
5. There are two "<log> </log>" tags that are available. Add the below line between <log> and </log> [<log> represents the start of the xml code of log function and </log> determines the end]
<directory>[Directory:\Name\configured]</directory>
**Make sure that this is added under both <log></log> tags**

6.Save the vpxd.cfg file
7. Start the VMware Virtual Center service.

Your new logging will take place in the custom directory that was defined.