Analyze log rotation configuration, check logrotate status, find unrotated logs, and monitor log file sizes
Project description
dargslan-log-rotate
Linux Log Rotation Analyzer — Analyze logrotate configuration, find large/unrotated logs, monitor log disk usage. Zero external dependencies.
Installation
pip install dargslan-log-rotate
CLI Usage
dargslan-logrot report # Full log rotation report
dargslan-logrot configs # Show logrotate configurations
dargslan-logrot usage # Log directory usage
dargslan-logrot large -m 50 # Find logs > 50MB
dargslan-logrot issues # Show issues
dargslan-logrot json # JSON output
Python API
from dargslan_log_rotate import LogRotateAudit
lr = LogRotateAudit()
lr.print_report()
configs = lr.parse_logrotate_entries()
large = lr.find_large_logs(min_size_mb=50)
usage = lr.log_dir_usage()
issues = lr.audit()
More Resources
License
MIT — Dargslan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dargslan_log_rotate-1.0.0.tar.gz.
File metadata
- Download URL: dargslan_log_rotate-1.0.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddfe912a29463fdd49b378e986e159c71cc361c0b08ea9b3fb37e8673fe6088a
|
|
| MD5 |
7dd53a8710f812a5607221daa7b4933f
|
|
| BLAKE2b-256 |
55313668312a19511e9f834e8f9e0f9112c30904a58dbc8d15b445575adff0ab
|
File details
Details for the file dargslan_log_rotate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dargslan_log_rotate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66216e4d0edacba7003c4bec824b8df039c6c7142713365c37b57c71525f6768
|
|
| MD5 |
db00ec6b62d208ff7612719874ac584d
|
|
| BLAKE2b-256 |
da019657ff1e0e01e33a0aee3c0036ac1942c2e55585f21faa045f6351a559e9
|