Skip to content

fix: update syslog format for Datadog parsing - #210

Merged
dianakhuang merged 1 commit into
mainfrom
robrap/fix-logs
Jul 23, 2026
Merged

fix: update syslog format for Datadog parsing#210
dianakhuang merged 1 commit into
mainfrom
robrap/fix-logs

Conversation

@robrap

@robrap robrap commented Jul 23, 2026

Copy link
Copy Markdown
Contributor
  • Restore timestamp to start of log message to help with parsing and multi-line logs.
  • Move log level immediately after timestamp to see if Datadog can better parse the log status.

See https://github.com/openedx/openedx-platform/blob/f46ba85dc19ad280088dc3697e02140a3bc9bc7a/openedx/core/lib/logsettings.py#L191 for original docker-based format.

- Restore timestamp to start of log message to help with
parsing and multi-line logs.
- Move log level immediately after timestamp to see if
Datadog can better parse the log status.
Copilot AI review requested due to automatic review settings July 23, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Open edX Docker production logging formatter so stdout log lines include a leading timestamp and place the log level immediately after it, aiming to improve Datadog parsing and multiline log grouping.

Changes:

  • Prepend %(asctime)s to the custom syslog_format.
  • Move %(levelname)s to immediately follow the timestamp (before logger name), both with and without ddtrace present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dianakhuang
dianakhuang merged commit 75aa946 into main Jul 23, 2026
4 checks passed
@dianakhuang
dianakhuang deleted the robrap/fix-logs branch July 23, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants