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 记录大于 2048 字符的消息?例如 curl 请求的原始响应。
// msg is a string > 2048 char. This truncates message to 2048 chars syslog(LOG_DEBUG, msg);
2K 限制也可能来自 rsyslog(这是默认限制)。您应该可以通过以下方式更改它:
$MaxMessageSize 10k
并将其放在配置开头的某个位置:
集中式 rsyslog:消息的最大大小