Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to setup a windows 2008 server so it's able to send the eventlog messages to an syslog-ng server running linux. I'd prefer something native but I guess it won't be possible.

UPDATE The first answer recommended to use snare, so far it's the best solution I found, totally painless to setup, and in less than five minutes I've logs to my syslog-ng server. The only drawaback (not snare fault) was that the logs are sent in windows-1252 charset encoding. So I was not able to tail -f them unless I change the charset somehow. If you are using syslog-ng this can be easily solved by creating a new source, in my case:

source src_win {
        udp(
                ip("192.168.1.200")
                port(514)
                encoding("WINDOWS-1252"));
};

After this (and assigning the new source to the right place) you will able to see your windows logs properly.

Old content

Looking around I've found a couple of solutions pointed by this page: http://www.itbuzzer.net/corner/2008/10/how-to-send-windows-events-to-syslog.asp

  • Syslog agent (http://www.syslogserver.com/syslogagent.html): This was the easyest choice, but the last update is from 2008
  • eventlog-to-syslog (http://code.google.com/p/eventlog-to-syslog/): It seems to be the most updated and recently has moved to code.google.com from the Purdue University
  • ntsyslog (http://ntsyslog.sourceforge.net/): Doesn't run on windows 2008server so I can't use that one.

Does anyone have experience with any of those or something else?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

I use Snare.

Snare for Windows is a Windows NT, Windows 2000, Windows XP, and Windows 2003 compatible service that interacts with the underlying Windows Eventlog subsystem to facilitate remote, real-time transfer of event log information. Snare for Windows also support 64 bit versions of Windows (X64 and IA64).

Snare for Windows Vista is a Windows 2008, Vista and Windows 7 compatible service that interacts with the underlying "Crimson" Eventlog subsystem to facilitate remote, real-time transfer of event log information. Snare for Windows Vista also support 64 bit versions of Windows (X64).

Snare for Windows and Windows Vista are free software (freeware), released under the terms of the GNU Public Licence (GPL).

share|improve this answer
1  
+1 I use Snare too. –  sebthebert Feb 7 '11 at 17:03
    
In scanning the snare docs it looks like all of the supported types are text files (eg IIs logs) can you get it to also send event logs to syslog? –  Jim B Feb 7 '11 at 17:33
    
    
I just installed snare on the server I was interested and it's great. Easy to configure and it just works out of the box. One issue tough, the charset used for the logs is not utf, probably is widnows-1252. Haven't look at it yet, but is that configurable? –  Aseques Feb 9 '11 at 9:38
    
What problem?... #pragma code_page(65001) and recompile. It's open source) –  alvosu Feb 9 '11 at 9:51

nxlog is an open-source solution which can do what you need using the im_mseventlog or im_msvistalog modules. There is charset conversion support so you can forward in utf-8 or another codepage.

share|improve this answer
    
It seems a nice solution, I've my setup working nicely at the moment, but I'll have an eye on this tool for the next time I need an alternative. –  Aseques Jan 16 '12 at 8:15

You might also consider looking at the most current incarnation of the eventlog-to-syslog project out there.

I'm looking at building a log server to centralize and process all the windows and linux logs in my environment and am looking at both that and snare. I'm leaning towards eventlog-to-syslog as it's supposedly a little bit lighter than snare and I'm hampered as my environment is already a somewhat overloaded vmware environment.

Not that I don't think snare is an excellent solution, I just like people to have multiple options.

share|improve this answer
    
I did a quick test of eventlog-to-sysog, prior posting to serverfault. On my brief testing I wasn't able to properly configure the service. After that I just installed snare and I've seen that it's a great tool and so easy to setup (thanks to the web interface). –  Aseques Feb 11 '11 at 13:45

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.