Skip to content

Commit 25f34a2

Browse files
committed
feat: apply logging formats
1 parent 087da1e commit 25f34a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/cdn.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ resource "fastly_service_vcl" "cdn" {
315315
period = 3600
316316
gzip_level = 9
317317
# %h "%{now}V" %l "%{req.request}V %{req.url}V" %{req.proto}V %>s %{resp.http.Content-Length}V %{resp.http.age}V "%{resp.http.x-cache}V" "%{resp.http.x-cache-hits}V" "%{req.http.content-type}V" "%{req.http.accept-language}V" "%{cstr_escape(req.http.user-agent)}V"
318-
format = "" # TODO
318+
format = "%%h \"%%{now}V\" %%l \"%%{req.request}V %%{req.url}V\" %%{req.proto}V %%>s %%{resp.http.Content-Length}V %%{resp.http.age}V \"%%{resp.http.x-cache}V\" \"%%{resp.http.x-cache-hits}V\" \"%%{req.http.content-type}V\" \"%%{req.http.accept-language}V\" \"%%{cstr_escape(req.http.user-agent)}V\""
319319
timestamp_format = "%Y-%m-%dT%H:%M:%S.000"
320320
redundancy = "standard"
321321
format_version = 2
@@ -330,7 +330,7 @@ resource "fastly_service_vcl" "cdn" {
330330
address = "cdn-logs.nyc1.psf.io"
331331
port = 514
332332
# %h "%{now}V" %l "%{req.request}V %{req.url}V" %{req.proto}V %>s %{resp.http.Content-Length}V %{resp.http.age}V "%{resp.http.x-cache}V" "%{resp.http.x-cache-hits}V" "%{req.http.content-type}V" "%{req.http.accept-language}V" "%{cstr_escape(req.http.user-agent)}V"
333-
format = "" # TODO
333+
format = "%%h \"%%{now}V\" %%l \"%%{req.request}V %%{req.url}V\" %%{req.proto}V %%>s %%{resp.http.Content-Length}V %%{resp.http.age}V \"%%{resp.http.x-cache}V\" \"%%{resp.http.x-cache-hits}V\" \"%%{req.http.content-type}V\" \"%%{req.http.accept-language}V\" \"%%{cstr_escape(req.http.user-agent)}V\""
334334
}
335335

336336
product_enablement {

0 commit comments

Comments
 (0)