I am wondering how syslog-ng validates that the header is in the correct format (pri, timestamp, hostname). Does it use regular expressions for this purpose?

有帮助吗?

解决方案

no, it uses a handwritten parser for this purpose. it's in the syslogformat plugin in 3.3 and was in logmsg.c earlier.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top