Skip to content

Commit 8413369

Browse files
authored
Fix decode_percent with fallible assertion cloudflare managed (#193)
decode_percent!() has been resulting in errors when null is encountered. This fix will allow it to not error out when nulls are encountered. This fix is for Cloudflare managed source on the http_requests table Signed-off-by: Darius <darius@dubiza.io>
1 parent 819d8c1 commit 8413369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/managed/log_sources/cloudflare/tables/http_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ transform: |
496496
if err == null {
497497
.url = parsed
498498
if .url.query != null {
499-
.url.query = decode_percent!(split!(.json.ClientRequestReferer, "?")[1])
499+
.url.query = decode_percent(split!(.json.ClientRequestReferer, "?")[1]) ?? null
500500
}
501501
.url.domain = del(.url.host)
502502
}

0 commit comments

Comments
 (0)