Re: Value is dropped or unset in resolved destination template
Fabien Wernli <[email protected]>
| Newsgroups | gmane.comp.syslog-ng |
|---|---|
| Organization | CC-IN2P3 (CNRS) |
| Message-ID | <[email protected]> |
Hi Mark,
It's really hard to tell what's happening without seeing your full
configuration. Remember messages can go through multiple logpaths, some of
which the variables are probably empty in.
That being said, if I were you I'd use a default value for your macros in any
case, much safer e.g.:
destination d_default {
file("`BASEPATH`/${location:-hidden}/$(lowercase ${HOST})/${app:-unknown}/$(lowercase ${HOST})_${app:-unknown}.log"
create_dirs(yes)
flags("threaded", "no-multi-line"));
};
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.balabit.com/wiki/syslog-ng-faq