[syslog-ng] Auto routing to specific relay based on hostname
Gergely Nagy
algernon at balabit.hu
Wed Aug 22 11:49:50 CEST 2012
sagar naravane <sagar.naravane at gmail.com> writes:
> Shouldn't it be
>
> filter f_colo_sj { host("^sj1*"); };
> filter f_colo_du { host("^du1*"); };
> filter f_colo_da { host("^da1*"); };
It's a regex, so .*, and as far as I remember, no, you don't need to
fully match the host, a partial match is fine. So if the beginning
matches, the filter will match, and ^sj (or ^sj1) is faster than ^sj1.*,
since the regexp engine does not have to process the whole string.
(I might be wrong, though, in which case ^sj1.* is the correct one)
--
|8]
More information about the syslog-ng
mailing list