... | @@ -10,10 +10,10 @@ Create the file /etc/rsyslog.d/10-remotelog.conf |
... | @@ -10,10 +10,10 @@ Create the file /etc/rsyslog.d/10-remotelog.conf |
|
# send logs to the storage node
|
|
# send logs to the storage node
|
|
|
|
|
|
# same as written to /var/log/messages
|
|
# same as written to /var/log/messages
|
|
*.info;mail.none;authpriv.none;cron.none @@10.1.1.12:1024
|
|
*.info;mail.none;authpriv.none;cron.none @@10.1.1.12:5327
|
|
|
|
|
|
# openstack logs
|
|
# openstack logs
|
|
local0.* @@10.1.1.12:1024
|
|
local0.* @@10.1.1.12:5327
|
|
```
|
|
```
|
|
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:
|
|
```
|
|
```
|
... | @@ -30,7 +30,7 @@ Edit the file /etc/rsyslog.conf |
... | @@ -30,7 +30,7 @@ Edit the file /etc/rsyslog.conf |
|
...
|
|
...
|
|
# provides TCP syslog reception
|
|
# provides TCP syslog reception
|
|
$ModLoad imtcp
|
|
$ModLoad imtcp
|
|
$InputTCPServerRun 1024
|
|
$InputTCPServerRun 5327
|
|
...
|
|
...
|
|
:hostname, isequal, "clusterlab04" /var/log/clusterlab04.log
|
|
:hostname, isequal, "clusterlab04" /var/log/clusterlab04.log
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |