I use rsyslog to save logs from remote hosts to a server this way:
Server:
# Logfile for each host
$template DynaFile,"/var/log/rsyslog/%HOSTNAME%.log"
*.* -?DynaFile
Clients:
*.* @servername
This creates log files for every client host in servers /var/log/rsyslog/
but it logs every message also to the servers /var/log/syslog
. So it gets really bloated. How can I prevent it so that /var/log/syslog
only contains messages from the server itself?
/var/log/syslog