summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest')
-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",