Access and Configure Appliance Logs
You access the logs for the vSphere Integrated Containers appliance by using SSH and navigating to /storage/log
. You can also configure log retention for the different logs.
Prerequisites
Make sure that SSH access to the appliance is enabled. To enable SSH access to the appliance, see Reconfigure the vSphere Integrated Containers Appliance.
Procedure
- Use SSH to connect to the appliance as root user.
$ ssh root@vic_appliance_address
When prompted for the password, enter the appliance password that you specified when you deployed the appliance. To access logs for vSphere Integrated Containers Registry, navigate to
/storage/log/harbor
.$ cd /storage/log/harbor
The/storage/log/harbor
folder contains the log files for the following services:adminserver.log
: Registry administration serviceclair-db.log
: Clair database used for vulnerability scanning of imagesclair.log
: Clair service used for vulnerability scanning of imagesjobservice.log
: Registry job service logmysql.log
: Embedded registry databasenotary-db.log
: Notary database by Docker Content Trustnotary-server.log
: Notary server used by Docker Content Trustnotary-signer.log
: Notary image signing service used by Docker Content Trustproxy.log
: Proxy service logsregistry.log
: Registry service logsui.log
: User interface logs
To configure the log retention for the registry services, edit the
/storage/data/harbor/harbor.cfg
file.$ vi /storage/data/harbor/harbor.cfg
The default configuration allows 50 files, up to 200MB each per service.- To set the maximum number of files used for storing logs per service, change the
log_rotate_count
property value to the desired number. - To set the maximum size in MB per file, change the
log_rotate_size
property value to the desired number.
- To set the maximum number of files used for storing logs per service, change the
- To access logs for the
vic-machine-server
service, navigate to/storage/log/vic-machine-server
.$ cd /storage/log/vic-machine-server
The default configuration allows 10 files, up to 1GB each. - To configure the
vic-machine-server
service log retention, edit the/etc/logrotate.d/vic-machine-server
file.$ vi /etc/logrotate.d/vic-machine-server
The default configuration allows 50 files, up to 200MB each per service.- To set the maximum number of files used for storing logs, change the
rotate
property value to the desired number. - To set the maximum size in GB per file, change the
size
property value to the desired number.
- To set the maximum number of files used for storing logs, change the
- To access logs for vSphere Integrated Containers Management Portal, navigate to
/storage/log/admiral
.$ cd /storage/log/admiral
- To configure the management portal log retention, edit the
/etc/vmware/admiral/logging-vic.properties
file.$ vi /etc/vmware/admiral/logging-vic.properties
The default configuration allows 5 files, up to 1GB each.- To set the maximum number of files used for storing logs, change the
java.util.logging.FileHandler.count
property value to the desired number. - To set the maximum size in bytes per file, change the
java.util.logging.FileHandler.limit
property value to the desired number.
- To set the maximum number of files used for storing logs, change the