[rsyslog] quick question regarding property values in rsyslog-2.0.6

Kambiz Aghaiepour kambiz at mcnc.org
Tue May 19 19:19:24 CEST 2009


Greetings!

When using the propery names for replacements in, say, output filenames,
 my first attempt was to have clauses such as the following in a central
log server:

$template HostSecure, "/srv/rsyslog/%source%/secure"
authpriv.*                                              ?HostSecure

I also attempted using %HOSTNAME%, both of which yielded the short form
of the senders hostname which seems to be extracted from the sender's
message (as is logged in the log files).

Is there some way to have a %source% or %HOSTNAME% that is the FQDN of
the origin of the syslog messages?

I am using the EPEL provided version of rsyslog (2.0.6) for CentOS5.x.

Thanks
Kambiz

-- 
"In the end, we will remember not the words of our enemies,
but the silence of our friends."  --MLK



More information about the rsyslog mailing list