Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Tor Colvin
Tor ColvinReporter
Tor Colvin
Tor ColvinStory Points
3
Components
Sprint
None
Fix versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty
Sentry
Sentry
Zendesk Support
Zendesk Support
Created August 9, 2024 at 2:57 PM
Updated October 28, 2024 at 4:03 PM
Resolved August 23, 2024 at 4:37 PM
Allow rotated console logs to be cleaned up based on rotated_logs_size_limit
This is a value set and used by Capella (for log streaming)
https://github.com/couchbasecloud/couchbase-cloud/blob/07c8aa6e6770b0b706f63778d8c441a1c352965b/internal/syncgateways/agent/bootstrap.go#L118
Due to ConsoleLogger not using FileLogger directly when FileOutput is set, the code to run cleanup based on rotated_logs_size_limit never gets run or initialized for the console log output.
This results in console logs being rotated at the specified size, but never actually cleaned up. Exacerbating this issue is the fact that console logs are not compressed when rotated.