cloud-init: upload only the last 1 MB of each log#912
Merged
Conversation
The sink enforces a per-row size cap. Cloud-init logs from systems that build from source (Hyrise, WarehousePG, Spark variants) or apt-install build-essential routinely run to hundreds of MB, and the unfiltered \`curl --data-binary @file\` push then fails with a size reject — losing the entire log including the diagnostic tail we actually rely on for triage. Pipe \`tail -c 1000000\` into curl for both files: enough to capture the bench output, any tracebacks, and the final readiness/timing lines, without ever blowing the cap. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
curl ... --data-binary @log/... @/var/log/cloud-init-output.logwithtail -c 1000000 | curl --data-binary @-so we send at most 1 MB per file.apt-install build-essentialproduce cloud-init logs of hundreds of MB. The sink enforces a per-row size cap; the unfiltered push failed, and we lost the entire log — including the diagnostic tail we actually use for triage.Test plan
🤖 Generated with Claude Code