diff --git a/content/ngf/how-to/data-plane-configuration.md b/content/ngf/how-to/data-plane-configuration.md index 1fb00c9c2..8fd5e2b38 100644 --- a/content/ngf/how-to/data-plane-configuration.md +++ b/content/ngf/how-to/data-plane-configuration.md @@ -272,6 +272,44 @@ of a few arguments. {{< /call-out >}} --- +## Configure the data plane log format + +NGINX records client requests immediately after each request is processed. You can use the `NginxProxy` resource to dynamically configure the access log format. + +The following command creates a basic `NginxProxy` that defines a custom log format `$remote_addr - [$time_local] "$request" $status $body_bytes_sent`: + +```yaml +kubectl apply -f - <}} File destinations in `logging.accessLog` are not currently supported it is always set to `/dev/stdout`. {{< /call-out >}} + +--- + ### Run NGINX Gateway Fabric with NGINX in debug mode To run NGINX Gateway Fabric with NGINX in debug mode, during [installation]({{< ref "/ngf/install/" >}}), follow these additional steps: