Skip to content

Remove internal Elastic log forwarding - #343

Merged
artahian merged 2 commits into
mainfrom
remove-elastic-log-shipping
Aug 12, 2026
Merged

artahian merged 2 commits into
mainfrom
remove-elastic-log-shipping

Conversation

@artahian

@artahian artahian commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

We were shipping every console line from tenant apps straight into the Elastic search cluster (stdout/stderr monkey-patch + winston), but nothing reads that data — Studio pulls logs from CloudWatch. This removes the whole path:

  • Deleted the logger process (stdout/stderr patching) and the unused modelence-logger bin
  • metrics.ts now only starts the APM agent
  • logDebug/logInfo/logError are console-only, controlled by MODELENCE_LOG_LEVEL (default info)
  • Dropped winston + winston-elasticsearch deps

One behavior change: telemetry-enabled apps previously suppressed console output — now logs always go to stdout, so they land in CloudWatch like everything else.


Note

Medium Risk
Changes logging behavior for telemetry-enabled apps (console was previously suppressed) and removes a telemetry sink, but APM and CloudWatch-based log consumption remain.

Overview
Removes the unused path that shipped console output into Elasticsearch. Studio already reads logs from CloudWatch, so this drops the winston/winston-elasticsearch stack, the stdout/stderr monkey-patch (loggerProcess), and the unused modelence-logger bin.

metrics now only starts the Elastic APM agent. logDebug/logInfo/logError write to console only, gated by MODELENCE_LOG_LEVEL (default info).

Behavior change: telemetry-enabled apps previously suppressed console output; logs now always go to stdout so they land in CloudWatch like everything else.

Reviewed by Cursor Bugbot for commit 9d0fe62. Bugbot is set up for automated code reviews on this repo. Configure here.

@omegascorp omegascorp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

-2 dependecies and -2,900 lines of code that's great 🚀

…ipping

# Conflicts:
#	packages/modelence/package-lock.json
@artahian
artahian merged commit 02e3d66 into main Aug 12, 2026
4 checks passed
@artahian
artahian deleted the remove-elastic-log-shipping branch August 12, 2026 22:42
@omegascorp omegascorp mentioned this pull request Nov 9, 2026
3 of 4 tasks
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.

2 participants