Exam objective - analyzing log files
As discussed in the previous section, OpenStack services write log files to /var/log/<service-name>/*
. The OpenStack service operating system packages automatically set up the logrotate
program to tar and compress old OpenStack log files, thus avoiding excessive storage consumption. The exception to this default log directory is Keystone and Swift. Keystone utilizes Apache and therefore writes log files to /var/log /apache2/*
. Swift writes log files to /var/log/syslog
.
Anytime a user makes a request to an OpenStack service's API, a request UUID is generated. You will sometimes see these request IDs when attempting to interact with a service on the Horizon dashboard or CLI. To get more information on service errors, you can easily browse log files for clues regarding the specific request ID.
For example, when attempting to create a new Neutron security group called default
on the Horizon dashboard, you get an error that looks like Figure 10.7.

Figure...