Nova Compute does not send messages to syslog
I have followed a number of tutorials online in trying to set this up but I was unsuccessful. Basically, I want all the logs in /var/log/nova/nova-compute
to also be logged in another file through syslog. Here are the steps I followed:
- Set up the two following options in
nova.conf
:
use_syslog = True syslog_log_facility = LOG_LOCAL0
Restarted the
openstack-nova-compute
serviceAdded the following line in
rsyslog.conf
:
local0.* -/var/log/nova-all.log
- Restarted the
rsyslog
service
The file nova-all never gets created, even if I try to set verbose=True
and debug=True
in nova.conf
. I don't believe this is an issue with my rsyslog
config because if I change the line: local0.* -/var/log/nova-all.log
to *.* -/var/log/nova-all.log
, the file will get created and logs will started generating. I think nova doesn't send it anything for some reason. I think all my nova.conf configuration is fine but I must be missing something. Any help would be greatly appreciated.
What version of OpenStack are you using? There was a bug in Juno that broke syslog functionality.