News for hackers. Stuff that matters.
Re:Ask HN: What's your open source stack? by valyala on Sunday June 08, 2025 @06:06AM (#44215941)
What 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.
Re:Ask HN: What's your open source stack? by bitbasher on Sunday June 08, 2025 @02:29PM (#44218710)
I 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.