|
|
|
|
|
by backslash_16
2082 days ago
|
|
Really easy and good homegrown logging. Use a structured logging library, this is key because it lets you easily filter on the properties attached to a log event. Then log those to a database. If you don't have a ton of volume and want to use really reliable tech and be safe(ish) send your logs to a relational DB used only for logging. I have never tried sending to just a separate table within the production database but I know that can be done too. Create read-only users on that logging DB or table. Download a GUI client for that DB and you're up and running. You can use SQL to filter, order by timestamp, and create views. If you still want to stay homegrown it's straightforward to put an API in front of it that powers some dashboards or easy investigation tools. For example, submit correlation/request ID and get back every log event in-order for that, color error logs red and boom - 1st level data visualization for investigations done too. |
|
If it ever causes a problem, you can move it.
You shouldn't need to order by timestamp, it should already be ordered by the very nature of logs.