Ask Your Question

how can i redirect my nova-api logs to syslog ?

asked 2013-04-12 04:43:10 -0600

ronakbanka-cse gravatar image

I want to redirect my nova-api logs to a remote server for which i need to log it to syslog futher using rsyslog.

on adding usesyslog=True sysloglogfacility=LOGLOCAL0

to nova.conf it is not sending nova-api logs to syslog. what is the way around?

edit retag flag offensive close merge delete


what is your configuration for local0 facility in rsyslog ?

obuisson gravatar imageobuisson ( 2013-04-13 03:40:36 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2013-04-23 04:14:34 -0600

lafada gravatar image

Set the use_syslog to True in your nova.conf file.

Restart the nova-api service and log will be redirected to syslog.

edit flag offensive delete link more

answered 2013-04-23 01:16:36 -0600

unmesh-gurjar gravatar image

There are a couple of things you need to do to get this working:

  1. Enable remote logging on the central syslog server by adding the following lines to rsyslog.conf of central logging server:

    $ModLoad imuxsock
    $ModLoad imklog
    # provides UDP syslog reception. For TCP, load imtcp.
    $ModLoad imudp
    # For TCP, InputServerRun 514
    $UDPServerRun 514
    # This one is the template to generate the log filename dynamically, depending on the client's IP address.
    $template FILENAME,"/var/log/%fromhost-ip%/syslog.log"
    # Log all messages to the dynamically formed file. Now each clients log (,,etc...), will be under a separate directory which is formed by the template FILENAME.
    *.* ?FILENAME

    After adding the above lines to the rsyslog.conf, restart the rsyslog process.

  2. On Nova API server, create a file /etc/rsyslog.d/60-nova.conf and append the following content (assuming that central logging server IP is:

    $ModLoad imuxsock
    $ModLoad imklog
    # Provides UDP forwarding. The IP is the server's IP address
    local0.*    @
    # Provides TCP forwarding. But the current server runs on UDP
    # local0.* @@

Restart the rsyslog process.

3. Change the Nova log behavior by editing nova.conf as follows:


Restart the Nova API service.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-04-12 04:43:10 -0600

Seen: 1,159 times

Last updated: Apr 23 '13