[rsyslog] One file per host logging
Luis Fernando Muñoz Mejías
Luis.Fernando.Munoz.Mejias at cern.ch
Fri Jul 10 17:17:53 CEST 2009
Ko,
>
> I'm a new-by in rsyslog. I want to do a centralized syslog server, and
> I want to know if it's possible to do a per host logging, I mean :
Indeed you can. Just specify the file name as a template. For instance:
$template FileNamePerHost,"/var/log/%HOSTNAME%.log"
And then, store everything on the files specified by the template:
*.* FileNamePerHost
You can even have folders per day, just review the documentation on
templates and properties.
Cheers
--
Luis Fernando Muñoz Mejías
Luis.Fernando.Munoz.Mejias at cern.ch
More information about the rsyslog
mailing list