Move accessLog.fields example to TOML section

This commit is contained in:
Major Hayden 2022-04-15 05:16:08 -05:00 committed by GitHub
parent 2691ac1307
commit 55cef21fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,9 +135,6 @@ Each field can be set to:
The `defaultMode` for `fields.headers` is `drop`. The `defaultMode` for `fields.headers` is `drop`.
[accessLog.fields]
defaultMode = "keep"
```yaml tab="File (YAML)" ```yaml tab="File (YAML)"
# Limiting the Logs to Specific Fields # Limiting the Logs to Specific Fields
accessLog: accessLog:
@ -161,6 +158,9 @@ accessLog:
filePath = "/path/to/access.log" filePath = "/path/to/access.log"
format = "json" format = "json"
[accessLog.fields]
defaultMode = "keep"
[accessLog.fields.names] [accessLog.fields.names]
"ClientUsername" = "drop" "ClientUsername" = "drop"