Skip to content
Back to skills

Log Rotation Config

ASecurity

Configure logrotate for application logs size retention

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill log-rotation-config --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Log Rotation Config?

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

Security grade badge for Log Rotation Config
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-log-rotation-config/badge)](https://www.skillsdirectory.com/skills/loopyluci-log-rotation-config)

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-rotation-config
description: "Configure logrotate for application logs size retention"
---

# Log Rotation Config

## logrotate Config
```ini
/var/log/myapp/*.log {
    daily
    rotate 7
    size 100M
    compress
    delaycompress
    missingok
    notifempty
    copytruncate
}
```

## Python Timed Rotating
```python
import logging.handlers
handler = logging.handlers.TimedRotatingFileHandler(
    "app.log", when="midnight", backupCount=7
)
handler.setFormatter(logging.Formatter("%(asctime)s %(message)s"))
```

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.

Comments

Loading comments…

Newsletter

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