Skip to content

Instantly share code, notes, and snippets.

@iroller
Created December 6, 2012 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iroller/40c233f40ebc8bc9163e to your computer and use it in GitHub Desktop.
Save iroller/40c233f40ebc8bc9163e to your computer and use it in GitHub Desktop.
block root b_block1(app(), file(), dest_suffix(), flags()) {
destination d_app_`app` { file("file.log", owner(user), group(user), perm(0644)); };
log { source(s_remote_`app`);
filter(f_user);
filter(f_app_`app`);
destination(d_app_`app`);
flags(final);
log { filter(f_exceptions);
destination(d_exceptions);
};
log { filter(f_exceptions);
destination(d_exceptions_multiline);
};
};
};
Error parsing log, syntax error, unexpected KW_LOG, expecting '}' in root block b_block1 at line 8, column 11:
included from /etc/syslog-ng/syslog-ng.conf line 48, column 22
log
^^^
@bazsi
Copy link

bazsi commented Dec 6, 2012

how do you reference this block?

@iroller
Copy link
Author

iroller commented Dec 7, 2012

bazsi:
b_block1(app(myappname))

Already tried to remove useless attributes:

block root b_block1(app()) {
It gives the same error.

3.3.7-1mhp1lucid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment