How can I make it so log file is stored both remotely and locally using rsyslog?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
It looks like it's as simple as two lines in the config file:
The rsyslog example configs have a few instances of teeing like this. The key one:
|
|||
|
|
|
Put the following line in your /etc/rsyslog.d/remote.conf:
This can easily be extended for only logging specific facilities and levels to the remote server. |
|||||||
|
|
Wouter de Bie had a good answer, but he showed the UDP method of sending logs. In order to send them over the more reliable (though not 100%) TCP use something like:
|
|||
|
|