Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add logs explorer template for auth logs

TzeYiing0e2f5a35dddb
diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.ts
index 6c50b7cd2d2..461f3c0d6b5 100644
--- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts
+++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts
@@ -180,6 +180,21 @@ group by
order by
count desc
limit 100
+`,
+ for: ['database'],
+ },
+ {
+ label: 'Auth Endpoint Events',
+ description: 'Endpoint events filtered by path',
+ mode: 'custom',
+ searchString: `select
+ t.timestamp,
+ event_message
+from auth_logs as t
+where
+ regexp_contains(event_message,"level.{3}(info|warning||error|fatal)")
+ -- and regexp_contains(event_message,"path.{3}(/token|/recover|/signup|/otp)")
+limit 100
`,
for: ['database'],
},