aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddytest
diff options
context:
space:
mode:
authorKévin Dunglas <[email protected]>2021-11-23 18:00:20 +0100
committerGitHub <[email protected]>2021-11-23 10:00:20 -0700
commit789efa5deef53071b57479d37e4022bf372c4eef (patch)
tree6fd09f809735e2d47dfc361a2617008950630508 /caddytest
parent8887adb027982e844965b4707b8595cee5845d54 (diff)
downloadcaddy-789efa5deef53071b57479d37e4022bf372c4eef.tar.gz
caddy-789efa5deef53071b57479d37e4022bf372c4eef.zip
logging: add a regexp filter (#4426)
Diffstat (limited to 'caddytest')
-rw-r--r--caddytest/integration/caddyfile_adapt/log_filters.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/log_filters.txt b/caddytest/integration/caddyfile_adapt/log_filters.txt
index 2693e9c60..1bef4c21d 100644
--- a/caddytest/integration/caddyfile_adapt/log_filters.txt
+++ b/caddytest/integration/caddyfile_adapt/log_filters.txt
@@ -19,6 +19,7 @@ log {
ipv4 24
ipv6 32
}
+ request>headers>Regexp regexp secret REDACTED
}
}
}
@@ -55,6 +56,11 @@ log {
],
"filter": "cookie"
},
+ "request\u003eheaders\u003eRegexp": {
+ "filter": "regexp",
+ "regexp": "secret",
+ "value": "REDACTED"
+ },
"request\u003eheaders\u003eServer": {
"filter": "delete"
},