... | @@ -36,5 +36,8 @@ $InputTCPServerRun 5327 |
... | @@ -36,5 +36,8 @@ $InputTCPServerRun 5327 |
|
|
|
|
|
Create the file /etc/rsyslog.d/10-remotelog.conf
|
|
Create the file /etc/rsyslog.d/10-remotelog.conf
|
|
```
|
|
```
|
|
:hostname, isequal, "clusterlab04" /var/log/clusterlab04.log
|
|
# send logs to the storage node
|
|
|
|
$template PerHostLog,"/var/log/cluster/%HOSTNAME%.log"
|
|
|
|
if $fromhost-ip startswith '10.1.1.' then -?PerHostLog
|
|
|
|
& ~
|
|
``` |
|
``` |
|
|
|
\ No newline at end of file |