I'm trying to set up syslog on windows using the instructions here:
http://www.syslog.org/logged/running-syslog-ng-on-windows/
Which worked fine, but now when I try and start the created service, it stops again immediately. Nothing is written to the syslog log file at /var/log/syslog-ng.log.
My syslog config looks like this:
#############################################################################
# Default syslog-ng.conf file which collects all local logs into a
# single file called /var/log/messages.
#
@version: 3.2
@include "scl.conf"
options {
keep_hostname(yes);
owner(“system”);
group(“root”);
perm(0664);
flush_lines(0);
};
source s_local {
system();
internal();
};
source s_network {
udp();
};
destination d_local {
file("/var/log/messages");
};
log {
source(s_local);
# uncomment this line to open port 514 to receive messages
source(s_network);
destination(d_local);
};
I tried running cygrunsrv -S syslog-ng and it output the following:
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started.
Does anyone have any clues on how I can get some useful debugging out of this service, or even better, what could be wrong with it?
/var/log/messages. Is there anything useful to be found there? – Fran May 28 '12 at 22:07