diff options
author | Kévin Dunglas <dunglas@gmail.com> | 2021-11-23 10:01:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 04:01:43 -0500 |
commit | bcac2beee7e419f8cdab2ed16f388d1af282a46b (patch) | |
tree | c8f3ca5424b3648cbfff4bd12f3d41ba77b70879 /caddytest/integration | |
parent | 1e10f6f725189a371a923a329084f1c3f608ae38 (diff) |
logging: add a filter for query parameters (#4424)
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Diffstat (limited to 'caddytest/integration')
-rw-r--r-- | caddytest/integration/caddyfile_adapt/log_filters.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/log_filters.txt b/caddytest/integration/caddyfile_adapt/log_filters.txt index 0949c1d..7873b1c 100644 --- a/caddytest/integration/caddyfile_adapt/log_filters.txt +++ b/caddytest/integration/caddyfile_adapt/log_filters.txt @@ -5,6 +5,10 @@ log { format filter { wrap console fields { + uri query { + replace foo REDACTED + delete bar + } request>headers>Authorization replace REDACTED request>headers>Server delete request>remote_addr ip_mask { @@ -40,6 +44,20 @@ log { "filter": "ip_mask", "ipv4_cidr": 24, "ipv6_cidr": 32 + }, + "uri": { + "actions": [ + { + "parameter": "foo", + "type": "replace", + "value": "REDACTED" + }, + { + "parameter": "bar", + "type": "delete" + } + ], + "filter": "query" } }, "format": "filter", |