From 2a2a1a35afed1fe929bb0ebba96b4355fbd9fa14 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 16 Sep 2024 10:46:23 +0700 Subject: [PATCH] caddy: timestamp now extracted from log line --- system/services/caddy.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/system/services/caddy.nix b/system/services/caddy.nix index 21a4a75..51fa728 100644 --- a/system/services/caddy.nix +++ b/system/services/caddy.nix @@ -94,6 +94,7 @@ in host = "request.host", method = "request.method", proto = "request.proto", + ts = "", } } @@ -115,6 +116,11 @@ in job = "caddy_access_log", } } + + stage.timestamp { + source = "ts" + format = "unix" + } } ''; };