From 789efa5deef53071b57479d37e4022bf372c4eef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 23 Nov 2021 18:00:20 +0100 Subject: logging: add a regexp filter (#4426) --- caddytest/integration/caddyfile_adapt/log_filters.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'caddytest/integration') diff --git a/caddytest/integration/caddyfile_adapt/log_filters.txt b/caddytest/integration/caddyfile_adapt/log_filters.txt index 2693e9c..1bef4c2 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" }, -- cgit v1.2.3