Syslog-ng not running

Closed
sezam2 Posts 73 Registration date Tuesday February 3, 2009 Status Member Last seen March 26, 2010 - Feb 14, 2009 at 03:29 PM
coldpay Posts 9 Registration date Thursday January 1, 2009 Status Member Last seen June 9, 2009 - Feb 15, 2009 at 04:42 AM
Hello,
i use suse 10 sp2

i was tring to configure a syslog server


after adding thees lignes in syslog-ng.config

this is for separating out network hosts into individual log files.
destination std {
file ("/var/log/HOSTS/$YEAR-$MONTH/$HOST$FACILITY-$YEAR-$MONTH-$DAY"
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); [B]in was (y/es) /B and I coorrcted it
};
log {
source(src);
destination(std);
};

after saving runing SuSEconfig and restarting syslog-ng
here what I see:

Shutting down syslog services done
Starting syslog servicessyntax error at 237
Parse error reading configuration file, exiting. (line 237)
startproc: exit status of parent of /sbin/syslog-ng: 1
failed

ligne 237 file ("/var/log/HOSTS/$YEAR-$MONTH/$HOST
ligne 238/$FACILITY-$YEAR-$MONTH-$DAY" wner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes));


thank you

1 response

coldpay Posts 9 Registration date Thursday January 1, 2009 Status Member Last seen June 9, 2009 13
Feb 15, 2009 at 04:42 AM
hi,
try this link to get more information about the problem you are having:
https://www.suse.com
hope it helps you to solve your problem.
0