Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道 syslog-ng 如何验证标头的格式是否正确(pri、时间戳、主机名)。它是否为此使用正则表达式?
不,它为此使用了手写解析器。它在 3.3 中的 syslogformat 插件中,之前在 logmsg.c 中。