Log drains #7572
-
Hello :) TL;DRI think it would be valuable to have the ability to forward logs from supabase to an external logging provider that supplies a TLS-enabled token-based auth syslog endpoint (e.g., Papertrail, Datadog, newrelic). MotivationsBetter visibility for traceabilityIn a complex system with application services and a DB, many logs are generated. To efficiently debug a problem, logs generated during a request in the application code would reside in the same place together with the DB logs. That would allow searching and filtering logs based on a context (e.g., user_id) to have a clear view of what happened during a request. Better visibility for securityActions that are done by users within the superbase platform (e.g., changing a DB size) should be logged to allow generating an audit trail. Assuming other services (like hosting platforms of the deployed code) forward their audit trail to a centralized logging provider, the DB audit trail would ideally reside with them, to give the system operators clear visibility of what happened in the system and by who. (Maybe) lower cost on the supabase side to run a projectIf an account chooses to forward all logs generated by supabase servers to an external logging provider, from supabase's perspective, a smaller amount of logs should be saved within the supabase platform (maybe only the data needed to support features like dashboard and analytics, if the account has opted-in to those features). Would love to hear your thoughts on this :) |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 2 replies
-
The existing log UI is very nice but limited noting the issues @thisis-ez raised above. It would be most excellent to have a way to pump these logs into a centralized location. For an example, you can look at the Datadog<>Vercel integration for log integration. As Supabase gets integrated into larger products observability will be a must. Thanks for your great developer experience, but also need to think about the devops experience once you get your product up and running. |
Beta Was this translation helpful? Give feedback.
-
Following this, this is a massive use case for my org, we have our logs stored in Datadog and need to forward our supabase ones in. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback. There is currently ongoing work for improving the logging experience with increased Logflare integration into the stack. For monitoring purposes, all projects have a prom-compatible endpoint exposed for project infra metrics. |
Beta Was this translation helpful? Give feedback.
-
+1. We need to alert the teams based on errors/logs, and as we don't have any way of doing that in supabase, it will be a must to have 3rd party integration or log forwarding feature. |
Beta Was this translation helpful? Give feedback.
-
+1 this would be amazing |
Beta Was this translation helpful? Give feedback.
-
+1 datadog |
Beta Was this translation helpful? Give feedback.
-
+1 axiom |
Beta Was this translation helpful? Give feedback.
-
+1 betterstack |
Beta Was this translation helpful? Give feedback.
-
Honeycomb integration would be 🔥 |
Beta Was this translation helpful? Give feedback.
-
+1 for datadog |
Beta Was this translation helpful? Give feedback.
-
+1 datadog please |
Beta Was this translation helpful? Give feedback.
-
Log drains is now in private alpha, please see this discussion here |
Beta Was this translation helpful? Give feedback.
Log drains is now in private alpha, please see this discussion here