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.
access_log にリクエスト/レスポンスのサイズ (本文 + ヘッダー) を記録する必要があります。nginxでそれを行う方法はありますか? Apache では、%I..%O 形式を使用して実行できます。
log_format combined '$request_length $bytes_sent';
docs によると$request_length、要求ヘッダーの長さが含まれて$bytes_sentおり、前述の要求に応答してクライアントに送信された合計バイト数です。
$request_length
$bytes_sent