# keymetrics/pm2-logrotate

Automatically rotate all applications logs managed by PM2

Repository: https://github.com/keymetrics/pm2-logrotate
Canonical: https://ross.abutalabs.com/products/pm2-logrotate
Language: JavaScript
License Family: other
Topics: pm2, cron, logrotate, logrotation, monitor, keymetrics, rotated, logs, easy
Last push: 2026-02-19T17:05:55+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 68, release rhythm 13, longevity 100
- inputs: {"age_days": 4151, "days_push": 195, "days_rel": 365, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1332, forks 148 (observed 2026-08-28T04:04:24.442197+00:00)

## What it is
A PM2 module that automatically rotates log files of all processes managed by PM2, based on size limits and cron schedules. It supports gzip compression, configurable retention counts, custom date formats, and timezone-aware rotation.

## Use cases
- rotate pm2 application logs automatically
- prevent log files from filling up disk on node.js servers
- compress and retain old pm2 logs
- schedule log rotation with cron for pm2 processes
- manage log size limits for pm2-managed apps

## When to choose
- you already run applications under PM2 and need hands-off log rotation
- you want size-based and cron-based rotation with gzip compression and retention control

## When to avoid
- your processes are not managed by PM2
- you need centralized log shipping or aggregation rather than local rotation

## Facets
- artifact type: plugin
- maturity: active
- function: logging, monitoring, scheduling, compression
- domain: monitoring, developer-tools, self-hosted
- platform: windows, cli, self-hosted
- tags: pm2, pm2-module, log-rotation, log-management, cron, logrotate, ops, devops, nodejs, linux, macos

## Member repositories
- keymetrics/pm2-logrotate (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:24.442197+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:45:11.714471+00:00, confidence not recorded.
  - readme: https://github.com/keymetrics/pm2-logrotate (fetched 2026-08-28T04:04:24.442197+00:00, sha 31c7b9053761)
- Data as of 2026-08-30T08:39:29.467469+00:00.
