Earl Sven
Earl Sven

Reputation: 251

Implement syslog to remote host in Windows service

I've been looking to implement sending log data to a remote Syslog host from my Windows service, so far the only decent library based option I have found is the UDP remote Syslog sender in the POCO net library. I'm interested in Syslog with TLS as described in RFC 5425, which the POCO library doesn't currently support.

My question is twofold, firstly have I missed an existing implementation of Syslog for Windows that supports sending to a remote host via TCP/TLS? Secondly, if no such implementation exists, I was looking to write my own (or perhaps extend the POCO one) - it doesn't look much more complicated than establishing a secure TLS session and putting Syslog formatted text strings into a TCP socket, I would use something like the .NET TLS implementation previously discussed here for the TLS part. Have I missed something, is this not that simple? Or is the reason that I can't find any libraries that implement this sort of Syslog communication for Windows that nobody wants to do this? Am I missing the brilliant alternative to Syslog that every other Windows dev is using?

Thanks in advance.

Upvotes: 0

Views: 972

Answers (2)

b0ti
b0ti

Reputation: 2329

Nxlog can do TLS/RFC5425 and is open source. (disclaimer: I'm the author)

While it's not a library, it has several input modules to make integration easier.

Upvotes: 0

Tom Damon
Tom Damon

Reputation: 748

The only packaged solution I've come across for this is from Balabit. It seems to be the only thing out there that supports TLS and RFC5425. If anyone else has come across another solution, I'd like to hear about it as well.

Upvotes: 1

Related Questions