HTTP variables
$request_body variable (HTTP)
Body data when read into memory in the supported proxy, FastCGI, uWSGI or SCGI handling path. It may be unavailable before reading or when spilled to disk. Never log real bodies. Version: Introduction not established. OSS documentation; verify build. No positional directive arguments. Example is a partial configuration fragment for a disposable synthetic lab; not a production logging policy.
Formal Syntax & Structure
nginx syntaxnginx
$request_bodyWorking Example
Example Snippetnginx
# Partial http-context example: map a synthetic value to a presence flag, never log the raw value.map $request_body $lab_present { "" 0; default 1;}