libol 0.3.6 syslog-ng 1.5.24 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? P.S. The SSL cert on the mailman signup page for this list is expired. Thanks, -- Alex Howansky Wankwood Associates http://www.wankwood.com/
Alex Howansky writes:
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?
Maybe you're missing a semicolon on the line before?
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?
Maybe you're missing a semicolon on the line before?
Nope, but if I replace that line with this one: destination d_gb { file("/log/gb/$YEAR$MONTH$DAY"); }; It works just fine, although the file is root:root... And yes, the log user and log group exist. :) Sorry, should have mentioned those things in the first place. -- Alex Howansky Wankwood Associates http://www.wankwood.com/
On Fri, 2002-12-20 at 20:52, ext Alex Howansky wrote:
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! (This should probably be documented somewhere... At least there shouldn't be a non-working example of using group/owner-directives in the FAQ.) Mika -- # Mika S. Marjamäki <ext-Mika.S.Marjamaki@nokia.com> +358-40-536-9514 # Unix System Specialist, NRC Unix Team
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/
On Mon, Dec 23, 2002 at 08:50:39AM -0600, Alex Howansky wrote:
(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.
Fixed. -- Nate Campi http://www.campin.net "Usenet is distributed network anarchy at its best--or worst, depending on what is posted on any particular day." - Fiedler, David in 'Byte'
Hi! On 2002 Dec 20, Alex Howansky wrote:
destination d_gb { file("/log/gb/$YEAR$MONTH$DAY" owner(log) group(log)); };
The "log" word is reserved, so you must escape ot with <"> when you want to use it as name. -- PGP ID 0x8D143771, /C5 95 43 F8 6F 19 E8 29 53 5E 96 61 05 63 42 D0 GPG ID ABA0E8B2, 45CF B559 8281 8091 8469 CACD DB71 AEFC ABA0 E8B2 An exaggeration is a thruth that has lost its temper -- Kahlil Gibran
participants (5)
-
Alex Howansky
-
Ed Ravin
-
Mika S. Marjamaki
-
Nate Campi
-
SZALAY Attila