Add log rotation for custom script extension logs

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
devops

Research direction

Start by locating the code that manages files under /var/lib/waagent/custom-script/downloads and any existing cleanup or logging behavior. Determine how log rotation could be configured for accumulated custom script logs, then verify that large log files are rotated or removed without affecting script execution.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Go
Stars
113
Forks
46
Avg merge
4d 15h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/custom-script-extension-linux

All issues in Azure/custom-script-extension-linux

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.