How to enable logging in OpenStack via devstack

Devstack is a shell script used to automate the building process of the entire OpenStack development environments. In OpenStack deployment created by devstack, debug output of individual OpenStack services goes to their corresponding interactive screen sessions. For debugging purposes, however, you may want to enable logging in OpenStack services. If you are using devstack to install OpenStack, you can easily enable logging in OpenStack by using devstack.

In order to capture the screen output of OpenStack services in separate log files, you can define the following variable in ~/devstack/localrc.


By default, $DEST points to /opt/stack. Therefore, the above setting lets the log files of individual OpenStack services be stored in /opt/stack/logs/screen/*.log.

In addition, if you would like to log, for devstack troubleshooting purposes, the detailed progress of OpenStack installations and configurations triggered by devstack, you can define the following variables in ~/devstack/localrc. With this setting, all standard output of devstack script will be stored in the specified log file.


Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *