|
|
|
# How to install rsyslog
|
|
|
|
|
|
|
|
rsyslog is used to gather logs from distributed server nodes on one central server node where they were stored in log files. In our installation, __all nodes__ are sending their log __to the storage node__.
|
|
|
|
|
|
|
|
The (r)syslog daemon is installed by default on ubuntu min. > 12.04 and centos min. > 6.5.
|
|
|
|
|
|
|
|
## configuring the sources
|
|
|
|
Edit the file /etc/nova.conf
|
|
|
|
```
|
|
|
|
local0.* @@10.8.10.100:1024 # SET IP AND PORT OF SINK!
|
|
|
|
```
|
|
|
|
## configuring the sink
|
|
|
|
Edit the file /etc/rsyslog.conf
|
|
|
|
```
|
|
|
|
...
|
|
|
|
# provides TCP syslog reception
|
|
|
|
$ModLoad imtcp
|
|
|
|
$InputTCPServerRun 1024
|
|
|
|
...
|
|
|
|
:hostname, isequal, "clusterlab04" /var/log/clusterlab04.log
|
|
|
|
``` |
|
|
|
\ No newline at end of file |