commit be26df4e95a60704b7918951d35387d8ea58bcab
parent 71aed767f2603ee317ce2eb2e51e58768234ab52
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 8 Oct 2025 19:31:15 +0100
don't send 9 digits of nanosecond to victorialogs
It fails to parse. I havent investigated how many digits it will
parse, but let's try 3
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pkgs/logshippers/victorialogsend.fnl b/pkgs/logshippers/victorialogsend.fnl
@@ -56,7 +56,9 @@ Host: %s\
(define-tests
(expect= (format-timestamp-rfc3339 "@4000000068e2f0d3257dc09b" 9)
- "2025-10-05T22:26:54.628998299Z"))
+ "2025-10-05T22:26:54.628998299Z")
+ (expect= (format-timestamp-rfc3339 "@4000000068e2f0d3257dc09b" 3)
+ "2025-10-05T22:26:54.628Z"))
@@ -65,7 +67,7 @@ Host: %s\
(->
(string.format
"{%q:%q,%q:%q,%q:%q,%q:%q}\n"
- :_time (format-timestamp-rfc3339 timestamp)
+ :_time (format-timestamp-rfc3339 timestamp 3)
:service service
:_msg msg
:host hostname)