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 : メッセージの最大サイズ