https://github.com/enikeishik/toplog
Simple script to logging top processes that load CPU.
https://github.com/enikeishik/toplog
cpu-monitoring logger logging php-cli top-process-meter utility
Last synced: 8 months ago
JSON representation
Simple script to logging top processes that load CPU.
- Host: GitHub
- URL: https://github.com/enikeishik/toplog
- Owner: enikeishik
- License: gpl-3.0
- Created: 2020-11-20T06:09:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-20T06:16:54.000Z (over 5 years ago)
- Last Synced: 2025-07-04T23:41:46.204Z (8 months ago)
- Topics: cpu-monitoring, logger, logging, php-cli, top-process-meter, utility
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Toplog
[![Software License][ico-license]](LICENSE.txt)
Simple script to logging top processes that load CPU.
## Usage
1. Just download toplog.php and put it to home (or any another) folder.
2. Create folder for log files (default /var/log/toplog).
3. Copy config for logrotate (toplog.logrotate.conf) into logrotate dir (default /var/etc/logrotate.d).
4. Create cron job:
```bash
*/5 * * * * php -f /path_to_script/toplog.php >> /var/log/toplog/toplog.log 2>&1
```
[ico-license]: https://img.shields.io/badge/license-GPL-brightgreen.svg?style=flat-square