projects / logwedge
logwedge
Split a growing log at byte or time boundaries without losing or duplicating a line. No daemon: run it from cron, it remembers its offset in a state file.
| author | Tomas Rehn |
|---|---|
| licence | ISC |
| original home | a self-hosted Trac instance that stopped answering in 2019 |
| releases held | 3, last checked 2026-11-02 |
Releases
| version | released | size | file |
|---|---|---|---|
| 2.3 | 2017-09-14 | 462 KiB | logwedge-2.3.tar.gz .sha256 |
b0e151b64399da857e0cd1979ec18266da42f2e580ae44a485cf034768742133 | |||
| 2.2.1 | 2014-05-06 | 443 KiB | logwedge-2.2.1.tar.gz .sha256 |
b7e6d3efe2aa452012a6f65190ab7e2f73f40553f875f38f30ccba9535d8891d | |||
| 2.1 | 2012-10-30 | 404 KiB | logwedge-2.1.tar.gz .sha256 |
3a673d38dd7dbb2d1b8576c3bc6abfc5b993952b218075908e89488e5a083460 | |||
Options
-s size- cut every size bytes (k, M, G suffixes)
-t secs- cut every secs seconds
-S file- state file, default .logwedge
Changes
- 2.3
- Time-based cuts (-t). gzip of finished pieces with -z.
- 2.2.1
- Handle logs truncated by another tool between runs.
- 2.1
- State file format v2; older state files are read once and upgraded.
curl -O https://pkgdepot.org/_cdn/pool/logwedge/logwedge-2.3.tar.gz sha256sum -c <(curl -s https://pkgdepot.org/_cdn/pool/logwedge/logwedge-2.3.tar.gz.sha256) tar xzf logwedge-2.3.tar.gz && cd logwedge-2.3 && make && make test