# Bytes\_sent and body\_bytes\_sent

**URL:** <https://community.nginx.org/t/bytes-sent-and-body-bytes-sent/10113>\
**Category:** NGINX\
**Tags:** reverse-proxy\
**Created:** [July 14, 2026, 9:29pm UTC](https://community.nginx.org/t/bytes-sent-and-body-bytes-sent/10113 "2026-07-14T21:29:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlf](https://avatars.discourse-cdn.com/v4/letter/x/e5b9ba/32.png) [@xlf](https://community.nginx.org/u/xlf)\
**Post date:** [July 14, 2026, 9:29pm UTC](https://community.nginx.org/t/bytes-sent-and-body-bytes-sent/10113/1 "2026-07-14T21:29:27Z")

</div>

What’s the difference between bytes\_sent, body\_bytes\_sent and request\_length? Are they for the request to nginx or response?

---

<div class="post-metadata">

**Author:** ![FrancisD](https://avatars.discourse-cdn.com/v4/letter/f/ea5d25/32.png) [@FrancisD](https://community.nginx.org/u/FrancisD)\
**Post date:** [July 15, 2026, 1:35pm UTC](https://community.nginx.org/t/bytes-sent-and-body-bytes-sent/10113/2 "2026-07-15T13:35:44Z")

</div>

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](https://nginx.org/r/$bytes_sent) - “number of bytes sent to a client”  
[Module ngx\_http\_core\_module](https://nginx.org/r/$body_bytes_sent) - “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](https://nginx.org/r/$request_length) - “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](http://nginx.org) /r/ $variable\_name (omitting spaces).)

Cheers,

---

<div class="post-metadata">

**Author:** ![system](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/system/32/19_2.png) [@system](https://community.nginx.org/u/system)\
**Post date:** [August 19, 2026, 6:48pm UTC](https://community.nginx.org/t/bytes-sent-and-body-bytes-sent/10113/4 "2026-08-19T18:48:18Z")

</div>

Closed on August 19, 2026, 6:48pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
