Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Check the windows event logs, might get a clue there. –  Mat May 28 '12 at 10:41
    
Sadly all I'm getting from the windows error logs is an entry that states the service "started, then stopped". –  Ceilingfish May 28 '12 at 10:43
    
The config file you show mentions /var/log/messages. Is there anything useful to be found there? –  Fran May 28 '12 at 22:07
    
No, it doesn't create the file. I tried creating the file and giving Everyone all permissions on it, but that didn't yield any difference. –  Ceilingfish May 29 '12 at 7:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.