Skip to content

Commit

Permalink
zuul, nodepool fb loggers: increase timestamp precision
Browse files Browse the repository at this point in the history
The default timestamp precision is up to the second. Increase
precision to nanosecond.

Change-Id: Ieb7549d5c86be25f2ba892fe99684c078a844fe7
  • Loading branch information
mhuin committed Oct 16, 2024
1 parent ca94665 commit 00243db
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/static/nodepool/logging.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ handlers:
host: {{ .LoggingParams.ForwardInputConfig.Host }}
port: {{ .LoggingParams.ForwardInputConfig.Port }}
tag: {{ .LoggingParams.Tag }}
nanosecond_precision: True
{{ end }}
loggers:
nodepool:
Expand Down
1 change: 1 addition & 0 deletions controllers/static/zuul/logging.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ handlers:
host: {{ .LoggingParams.ForwardInputConfig.Host }}
port: {{ .LoggingParams.ForwardInputConfig.Port }}
tag: {{ .LoggingParams.Tag }}
nanosecond_precision: True
{{ end }}
loggers:
zuul.GerritConnection.ssh:
Expand Down
2 changes: 2 additions & 0 deletions doc/reference/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00243db

Please sign in to comment.