3 ms·
I run services that log to plaintext files and I use logrotate to periodically gzip and rotate them out for archival. Just use grep to query recent logs, zgrep
by Sir_Cmpwn 12y ago
I run services that log to plaintext files and I use logrotate to periodically gzip and rotate them out for archival.
Just use grep to query recent logs, zgrep if you have to dig a little.
- nazri1 12y agozgrep works for both plain text and gzipped streams so you can do something like this (assuming you have both deflated and non-deflated files that matches the glob pattern): zgrep somepattern /var/log/messages*