Azure / Azure/custom-script-extension-linux

Add log rotation for custom script extension logs

未关闭
#175 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
113
派生
46
平均合并
6 天 3 小时
30 天内合并 PR
3

描述

We've encountered an issue where our custom script extension generates very large logging output (100+ MB). As these files don't seem to be cleaned up frequently (or at all?), the logs accumulate in /var/lib/waagent/custom-script/downloads and end up using huge amounts of disk space.

Can log rotation for these files be configured?

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位管理 /var/lib/waagent/custom-script/downloads 下文件的代码,以及任何现有的清理或日志记录行为。确定如何为累积的 custom script 日志配置日志轮换,然后验证大型日志文件是否会在不影响脚本执行的情况下进行轮换或删除。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
devops
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。