Bytes_sent and body_bytes_sent

What’s the difference between bytes_sent, body_bytes_sent and request_length? Are they for the request to nginx or response?

Hi there,

“The Fine Manual” is often good; but it is not necessarily clear how to access details in it.

Some examples are:

Module ngx_http_core_module - “number of bytes sent to a client”
Module ngx_http_core_module - “number of bytes sent to a client, not counting the response header” (with more details).

Those two are for the response from nginx to the requesting client.

Module ngx_http_core_module - “request length (including request line, header, and request body)”

That one measures the request from the client to nginx.

(In case things are mangled in the UI: each link there is of the form http :// nginx.org /r/ $variable_name (omitting spaces).)

Cheers,