According to the docs/faq, I should be able to do this:
destination d_gb { file("/log/gb/$YEAR$MONTH$DAY" owner(log) group(log)); };
But when starting, I get:
Starting syslog-ng: parse error at 51 Parse error reading configuration file, exiting. (line 51)
What am I missing?
Hi,
Try putting the user and group in quotes, like this:
- - - destination d_gb { file("/log/gb/$YEAR$MONTH$DAY" owner("log") group("log") ); }; - - -
Hope This Helps!
Woohoo it works! I can finally take that chown out of my crontab now...
(This should probably be documented somewhere... At least there shouldn't be a non-working example of using group/owner-directives in the FAQ.)
I'll CC the FAQ maintainer. Thanks for the help, -- Alex Howansky Wankwood Associates http://www.wankwood.com/