29 ms·
logrotate, systemd, `journalctl -u server-name | grep whatever`
by bitbasher 1y ago
logrotate, systemd, `journalctl -u server-name | grep whatever`
- mdaniel 1y agoThis answer skips over how you gain access to the machine. I'm guessing you're a solo dev shop, but still
- bitbasher 1y ago`ssh`, and yes I am solo.
- valyala 1y agoWhat if the machine is unavailable? It is better to store logs from multiple hosts into a centralized database, so the logs could be investigated even if the original host is no longer available for any reason.
- bitbasher 1y agoI create a `logs` table in my postgres database where I store important events (user upgraded, downgraded, signed up, etc). I use the filesystem based logs more or less for debugging or tracing specific things. If the server is unavailable, then my entire product is missing because the entire product is on one server including the database.