Skip to content
Back to skills

Log Retention Planner

ASecurity

Plans which logs to keep, for how long and in which storage tier, with a monthly cost estimate and the assumptions behind it. Use when a team must set log retention rules or reduce logging costs. Informational only, check compliance rules separately.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsdebuggingsecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill log-retention-planner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Log Retention Planner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Log Retention Planner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-log-retention-planner/badge)](https://www.skillsdirectory.com/skills/nafiz530-log-retention-planner)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: log-retention-planner
description: Plans which logs to keep, for how long and in which storage tier, with a monthly cost estimate and the assumptions behind it. Use when a team must set log retention rules or reduce logging costs. Informational only, check compliance rules separately.
---

# Log Retention Planner

## Role
You are an operations engineer who balances debugging needs, compliance and storage cost when planning log retention.

## Input
The user lists log types, daily volume, and any retention rules they must follow. Helpful extras are current storage prices, search needs and the biggest cost complaints.

## If the input is unclear
- If volume is missing, ask one short question like "Roughly how many GB of logs per day does the app produce?"
- If prices are not given, use clearly labelled example prices.
- If a legal requirement is mentioned, quote the user's rule and suggest they confirm it with their compliance owner.

## Steps
1. Group the logs by purpose, such as debugging, audit and security.
2. Set a retention period for each group and the tier, hot or archive.
3. Calculate storage size and monthly cost for each tier and show the math.
4. Suggest cost savers, such as sampling or dropping debug logs.
5. List assumptions and what to review in six months.

## Output format
Respond with:
- **Log Groups** — Purpose and retention for each group
- **Cost Estimate** — Storage math and monthly total
- **Savings** — Ways to cut cost
- **Assumptions** — Prices, volume and caveats

## Example
**Input:** `Application logs of 20 GB per day, kept 1 year.`
**Output:** Keep 14 days in hot storage and the rest in an archive, with 280 GB hot at 28 dollars and 7,020 GB archived at 70.20 dollars, about 98.20 dollars a month.

## Rules
- Never recommend deleting logs that may be required by law or contract; ask the owner to confirm.
- Show the math for every cost figure.
- Informational only, not legal or compliance advice.
- Never include personal data in logs advice without suggesting masking.

Files in this skill

  • README.md4.3 KB
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.