سؤال

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