Skip to content

Conversation

@gmarciani
Copy link
Contributor

@gmarciani gmarciani commented Dec 23, 2025

Description of changes

Add ISO 8601 timestamp with milliseconds precision to chef-client.log.
This PR depends on aws/aws-parallelcluster-cookbook#3071, where the chef log formatter is introduced.

Tests

  • Manually verified that logs in che-client.log now has logs with millisecond precision:
[2026-01-05T19:41:12.265+0000] INFO: {:system=>"ohai", :version=>"18.2.5", :resource=>"load cluster configuration"

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@gmarciani gmarciani added the 3.x label Dec 23, 2025
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/fix-cw-log-timestamp-1223-1 branch from 7fd0ab1 to ef4ca38 Compare December 23, 2025 21:58
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/fix-cw-log-timestamp-1223-1 branch 3 times, most recently from c88365b to 5f92b17 Compare January 5, 2026 20:18
@gmarciani gmarciani changed the title [Logging] Add ISO 8601 timestamps to cloud-init logs with milliseconds precision and configure the custom logger for Chef. [Logging] Add ISO 8601 timestamp with milliseconds precision to chef-client.log. Jan 5, 2026
@gmarciani gmarciani marked this pull request as ready for review January 5, 2026 21:44
@gmarciani gmarciani requested review from a team as code owners January 5, 2026 21:44
@gmarciani gmarciani force-pushed the wip/mgiacomo/3150/fix-cw-log-timestamp-1223-1 branch from 5f92b17 to 4ead941 Compare January 5, 2026 21:45
@gmarciani
Copy link
Contributor Author

Closing this PR because we figured out that the custom log formatter does not apply the milliseconds timestamp to all log lines, ending up with some log lines having millis and some other having seconds, which messes up cw timestamp parsing.

@gmarciani gmarciani closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant