Search code examples
c++socketssyslogsyslog-ng

How to get data from Syslog-NG / Syslog


I am looking to create a C++ socket app that will listen on a port, and receive data from Syslog and Syslog-NG. Is there documentation anywhere about how it will come through the socket?


Solution

  • Yes, there is. The syslog protocol is described in RFC 5424. According to IANA, it uses UDP 514.