Structured Log Filtering with Journalctl & Awk

Extracting service latency anomalies and unit restart histories directly from binary systemd journals without external log shippers.

Keep the journal small

Limiting journal disk footprint while querying structured JSON output keeps diagnostics fast on compact VMs:

journalctl --vacuum-size=100M
journalctl -u caddy.service --since "24 hours ago" -o short-iso

Filter by unit first, then by time. Searching the whole journal for a string is the slowest way to find a restart that happened yesterday.

← Back to all entries