[syslog-ng]$HOST $YEAR, etc not working correctly..

Doug Peterson syslog-ng@lists.balabit.hu
Wed, 25 Feb 2004 12:16:24 -0800 (PST)

--- Balazs Scheidler <bazsi@balabit.hu> wrote:
> strange, the problem seems to be that you reference marcos like
> which is interpeted as $YEAR_ concatenated with $MONTH_, these are
> undefined macros, thus are expanded to an empty string.
> Try escaping the underscore with a backslash, like

I escaped out the _ characters, and am still getting the same results with 1.6.2.. files are being
written as messages_25 (25 being $DAY)

My rules now look like this:

destination messages.network {
                                owner(root) group(sysadmin) perm(0640) dir_perm(0700)
create_dirs(yes) ); };

Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.