[syslog-ng]change user:group of destination file
Mika S. Marjamaki
ext-mika.s.marjamaki@nokia.com
23 Dec 2002 09:41:51 +0200
On Fri, 2002-12-20 at 20:52, ext Alex Howansky wrote:
> According to the docs/faq, I should be able to do this:
>=20
> destination d_gb { file("/log/gb/$YEAR$MONTH$DAY"
> owner(log) group(log)); };
>=20
> But when starting, I get:
>=20
> Starting syslog-ng: parse error at 51
> Parse error reading configuration file, exiting. (line 51)
>=20
> 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
--=20
# Mika S. Marjam=E4ki <ext-Mika.S.Marjamaki@nokia.com> +358-40-536-9514
# Unix System Specialist, NRC Unix Team