enricorossi.org

Enrico Rossi


Articles tagged with rsyslog

Rsyslog with remote log and rotation by date

Tags: debian, howto, linux, log, rsyslog

How to configure a debian (Wheezy) rsyslog daemon to receive logs from remote system, store them in a separate directory/file and the daily rotate these files with date-like extension.

What we want:

/var/log/
 ├── alternatives.log
 ├── alternatives.log.1
 .
 .
 .
 ├── remote
    ├── remote1_host_IP
       ├── remote1_host.log
       ├── remote1_host.log-20141202.gz
       ├── remote1_host.log …
Read more...