... | @@ -5,9 +5,15 @@ rsyslog is used to gather logs from distributed server nodes on one central serv |
... | @@ -5,9 +5,15 @@ rsyslog is used to gather logs from distributed server nodes on one central serv |
|
The (r)syslog daemon is installed by default on ubuntu min. > 12.04 and centos min. > 6.5.
|
|
The (r)syslog daemon is installed by default on ubuntu min. > 12.04 and centos min. > 6.5.
|
|
|
|
|
|
## Configure the sources
|
|
## Configure the sources
|
|
Edit the file /etc/rsyslog.d/60-openstack.conf
|
|
Create the file /etc/rsyslog.d/10-remotelog.conf
|
|
```
|
|
```
|
|
local0.* @@10.8.10.100:1024 # SET IP AND PORT OF SINK!
|
|
# send logs to the storage node
|
|
|
|
|
|
|
|
# same as written to /var/log/messages
|
|
|
|
*.info;mail.none;authpriv.none;cron.none @@storagenode:1024
|
|
|
|
|
|
|
|
# openstack logs
|
|
|
|
local0.* @@storagenode:1024
|
|
```
|
|
```
|
|
Tell nova to use syslog for logging. Place the following in [DEFAULT] of /etc/nova/nova.conf:
|
|
Tell nova to use syslog for logging. Place the following in [DEFAULT] of /etc/nova/nova.conf:
|
|
```
|
|
```
|
... | | ... | |