Metadata-Version: 2.4
Name: dargslan-log-rotate
Version: 1.0.0
Summary: Analyze log rotation configuration, check logrotate status, find unrotated logs, and monitor log file sizes
Author-email: Dargslan <info@dargslan.com>
License: MIT
Project-URL: Homepage, https://dargslan.com
Project-URL: Documentation, https://dargslan.com/blog
Project-URL: Repository, https://github.com/Dargslan
Project-URL: Free Cheat Sheets, https://dargslan.com/cheat-sheets
Project-URL: Linux & DevOps Books, https://dargslan.com/books
Project-URL: Blog & Tutorials, https://dargslan.com/blog
Keywords: logrotate,log,rotation,linux,sysadmin,devops,monitoring,disk
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Logging
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# dargslan-log-rotate

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

[![PyPI version](https://img.shields.io/pypi/v/dargslan-log-rotate)](https://pypi.org/project/dargslan-log-rotate/)

## Installation

```bash
pip install dargslan-log-rotate
```

## CLI Usage

```bash
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

```python
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

- [Linux eBooks](https://dargslan.com/books) | [Cheat Sheets](https://dargslan.com/cheat-sheets) | [Blog](https://dargslan.com/blog)

## License

MIT — [Dargslan](https://dargslan.com)
