summaryrefslogtreecommitdiff
path: root/caddytest/integration
diff options
context:
space:
mode:
authorKévin Dunglas <dunglas@gmail.com>2021-11-23 10:01:43 +0100
committerGitHub <noreply@github.com>2021-11-23 04:01:43 -0500
commitbcac2beee7e419f8cdab2ed16f388d1af282a46b (patch)
treec8f3ca5424b3648cbfff4bd12f3d41ba77b70879 /caddytest/integration
parent1e10f6f725189a371a923a329084f1c3f608ae38 (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.txt18
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",