Separating logs per hostname on a Central rsyslog server
Under /etc/rsyslog.conf append
$FileCreateMode 0655
$DirCreateMode 0755
$Umask 0022
$template default,"/srv/logs/%HOSTNAME%/%$now%.log"
*.* ?default
this will create directories under /srv/logs/
Post a Comment