[rsyslog] Remote loggin to 2 rsyslog servers but with "priority"
Beat Meier
mbe_ml at swiss-wireless.com.ar
Wed Sep 2 22:18:09 CEST 2009
Thanks Rainer
That's exactly what I looked for.
One more question
I use templates of the form:
$template DynFileAuth,"/var/log/%HOSTNAME%/auth.log"
$template DynFileSyslog,"/var/log/%HOSTNAME%/syslog"
$template DynFileCron,"/var/log/%HOSTNAME%/cron.log"
How can I use variables to replace the path /var/log
So I can use something like:
path="/var/log"
$template DynFileAuth,"$path/%HOSTNAME%/auth.log"
$template DynFileSyslog,"$path/%HOSTNAME%/syslog"
$template DynFileCron,"$path/%HOSTNAME%/cron.log"
Is the template way the only one?
I think that template is expanded at runtime, isn't it?
Is there a variable method that is expanded when daemon starts, for
efficiency?
I have nothing found in the wiki with search, no in the docu index, nor
the man page of rsyslog.conf.
Greetings and thanks
Beat
Rainer Gerhards wrote:
>please see: http://wiki.rsyslog.com/index.php/FailoverSyslogServer
>
>
>
More information about the rsyslog
mailing list