Skip to main content

dargslan-log-rotate

Linux Log Rotation Analyzer — Analyze logrotate configuration, find large/unrotated logs, monitor log disk usage. Zero external dependencies.

PyPI version

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dargslan_log_rotate-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_log_rotate-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for dargslan_log_rotate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ddfe912a29463fdd49b378e986e159c71cc361c0b08ea9b3fb37e8673fe6088a
MD5 7dd53a8710f812a5607221daa7b4933f
BLAKE2b-256 55313668312a19511e9f834e8f9e0f9112c30904a58dbc8d15b445575adff0ab

See more details on using hashes here.

File details

Details for the file dargslan_log_rotate-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_log_rotate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66216e4d0edacba7003c4bec824b8df039c6c7142713365c37b57c71525f6768
MD5 db00ec6b62d208ff7612719874ac584d
BLAKE2b-256 da019657ff1e0e01e33a0aee3c0036ac1942c2e55585f21faa045f6351a559e9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page