From 00243db948329dfd42e7f7a06294c4cd3a6db85a Mon Sep 17 00:00:00 2001 From: Matthieu Huin Date: Fri, 11 Oct 2024 14:49:46 +0200 Subject: [PATCH] zuul, nodepool fb loggers: increase timestamp precision The default timestamp precision is up to the second. Increase precision to nanosecond. Change-Id: Ieb7549d5c86be25f2ba892fe99684c078a844fe7 --- controllers/static/nodepool/logging.yaml.tmpl | 1 + controllers/static/zuul/logging.yaml.tmpl | 1 + doc/reference/CHANGELOG.md | 2 ++ 3 files changed, 4 insertions(+) diff --git a/controllers/static/nodepool/logging.yaml.tmpl b/controllers/static/nodepool/logging.yaml.tmpl index 776f240..5c6c4e6 100644 --- a/controllers/static/nodepool/logging.yaml.tmpl +++ b/controllers/static/nodepool/logging.yaml.tmpl @@ -28,6 +28,7 @@ handlers: host: {{ .LoggingParams.ForwardInputConfig.Host }} port: {{ .LoggingParams.ForwardInputConfig.Port }} tag: {{ .LoggingParams.Tag }} + nanosecond_precision: True {{ end }} loggers: nodepool: diff --git a/controllers/static/zuul/logging.yaml.tmpl b/controllers/static/zuul/logging.yaml.tmpl index 7434c82..c2b9b89 100644 --- a/controllers/static/zuul/logging.yaml.tmpl +++ b/controllers/static/zuul/logging.yaml.tmpl @@ -28,6 +28,7 @@ handlers: host: {{ .LoggingParams.ForwardInputConfig.Host }} port: {{ .LoggingParams.ForwardInputConfig.Port }} tag: {{ .LoggingParams.Tag }} + nanosecond_precision: True {{ end }} loggers: zuul.GerritConnection.ssh: diff --git a/doc/reference/CHANGELOG.md b/doc/reference/CHANGELOG.md index 0abc4cc..bed5aee 100644 --- a/doc/reference/CHANGELOG.md +++ b/doc/reference/CHANGELOG.md @@ -12,6 +12,8 @@ All notable changes to this project will be documented in this file. ### Changed ### Fixed +- log forwarding - nodepool and zuul logs were being stamped with a low precision (to the second), making verbose + deployments hard to exploit. Logs forwarded with the python-fluent-logger library use the "nanosecond_precision" setting. - logserver not restarted when zuul-ssh-key change ### Security