The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: updated images and product logs tab
TzeYiing3203b82e61ed
diff --git a/apps/reference/docs/guides/platform/logs.mdx b/apps/reference/docs/guides/platform/logs.mdxindex 02b02679633..9f7ef4dc414 100644--- a/apps/reference/docs/guides/platform/logs.mdx+++ b/apps/reference/docs/guides/platform/logs.mdx@@ -4,11 +4,11 @@ title: Loggingdescription: Getting started with Supabase Platform Log Browser----The Supabase Platform provides a log explorer that allows log tracing and debugging. Currently, PostgreSQL and Cloudflare edge logs are available. The available logs are based on your plan's log retention, which can be found on the [pricing page](https://supabase.com/pricing).+The Supabase Platform provides a log explorer that allows log tracing and debugging. The availability of logs are based on your plan's log retention, which can be found on the [pricing page](https://supabase.com/pricing).:::note-The features discussed in this article are only available through the Supabase Platform and are not yet available on self-hosted.+The features discussed in this article are only available through the **Supabase Platform** and are not yet available on self-hosted.:::@@ -41,12 +41,44 @@ The Postgres Logs can be found under `Database > Postgres Logs`. These show all+ </TabItem>+ <TabItem value="auth" label="Auth">++The Auth Logs can be found under `Authentication > Logs`. These show all server logs for your [Auth system](../../guides/auth).++++ </TabItem>+ <TabItem value="storage" label="Storage">++The Storage Logs can be found under `Storage > Logs`. These show all server logs for your [Storage API](../../guides/storage).++++ </TabItem>+ <TabItem value="realtime" label="Realtime">++The Realtime Logs can be found under `Database > Realtime Logs`. These show all server logs for your [Realtime API](../../guides/realtime).++++ </TabItem>+ <TabItem value="functions" label="Edge Functions">++The Edge Functions Logs can be found under two tabs:+- `Functions > Your Function > Invocations`: Edge logs of function calls.+- `Functions > Your Function > Logs`: Logs emitted during function execution.+++++</TabItem></Tabs>## Logs Explorer-+The log browser can be accessed in the sidebar under **Logs Explorer**. The **Logs Explorer** is for querying and aggregating project logs across products using SQL `SELECT` queries.@@ -62,12 +94,12 @@ The following log sources are currently supported and can be viewed under the **- `function_logs`: Function internal logs, containing any `console` logging from within the edge function.-### Querying with the Logs Explorer+## Querying with the Logs ExplorerThe underlying SQL engine used for the Logs Explorer is BigQuery, hence you will be able to use any of the [available SQL functions and operators]((https://cloud.google.com/bigquery/docs/reference/standard-sql/functions-and-operators)) supported by BigQuery.-#### Timestamp Display and Behavior+### Timestamp Display and BehaviorEach log entry is stored with a `timestamp`. In order to utilize the `timestamp` field in a query, you can use the appropriate [timestamp functions](https://cloud.google.com/bigquery/docs/reference/standard-sql/timestamp_functions#timestamp).@@ -79,7 +111,7 @@ To render the timestamps in a human-readable format, we recommend using the `DATSELECT DATETIME(timestamp) FROM ....```-#### Unnesting Arrays+### Unnesting ArraysTo query nested data within log event, you will need to unnest the field and "join" the unnested data. Clicking on the log row shows that log metadata is stored as an array of objects.@@ -97,11 +129,11 @@ CROSS JOIN UNNEST(r.headers) as hHere, the `metadata` key when rendered in the Logs Explorer shows an array. In order to drill down further, we perform the `CROSS JOIN UNNEST()` to select the nested key `request`. However, in order to query the headers, we have to go one step further and perform the join and unnest again in order to have access to the headers, under the alias `h`.-#### LIMIT and Result Row Limitations+### LIMIT and Result Row LimitationsThe Logs Explorer has a maximum of 1000 rows per run. To optimize your queries, you may wish to add in a `LIMIT` to your SQL query, to reduce the number of rows returned even further.-#### Best Practices+### Best Practices1. Have a WHERE statement filtering over **timestamp**diff --git a/apps/reference/static/img/guides/platform/logs/logs-api.png b/apps/reference/static/img/guides/platform/logs/logs-api.pngindex a5051f4ca2a..798abee5f73 100644Binary files a/apps/reference/static/img/guides/platform/logs/logs-api.png and b/apps/reference/static/img/guides/platform/logs/logs-api.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-auth.png b/apps/reference/static/img/guides/platform/logs/logs-auth.pngnew file mode 100644index 00000000000..a020bb86430Binary files /dev/null and b/apps/reference/static/img/guides/platform/logs/logs-auth.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-database.png b/apps/reference/static/img/guides/platform/logs/logs-database.pngindex 2b67b16a2a8..78f9036eeaa 100644Binary files a/apps/reference/static/img/guides/platform/logs/logs-database.png and b/apps/reference/static/img/guides/platform/logs/logs-database.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-explorer.png b/apps/reference/static/img/guides/platform/logs/logs-explorer.pngnew file mode 100644index 00000000000..3d21fb0569cBinary files /dev/null and b/apps/reference/static/img/guides/platform/logs/logs-explorer.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-functions-edge.png b/apps/reference/static/img/guides/platform/logs/logs-functions-edge.pngnew file mode 100644index 00000000000..2d0d699cac1Binary files /dev/null and b/apps/reference/static/img/guides/platform/logs/logs-functions-edge.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-functions.png b/apps/reference/static/img/guides/platform/logs/logs-functions.pngnew file mode 100644index 00000000000..efd455955c9Binary files /dev/null and b/apps/reference/static/img/guides/platform/logs/logs-functions.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-realtime.png b/apps/reference/static/img/guides/platform/logs/logs-realtime.pngnew file mode 100644index 00000000000..4b93e87e990Binary files /dev/null and b/apps/reference/static/img/guides/platform/logs/logs-realtime.png differdiff --git a/apps/reference/static/img/guides/platform/logs/logs-storage.png b/apps/reference/static/img/guides/platform/logs/logs-storage.pngnew file mode 100644index 00000000000..d0f98ea43ccBinary files /dev/null and b/apps/reference/static/img/guides/platform/logs/logs-storage.png differdiff --git a/apps/reference/static/img/guides/platform/logs/select-query.png b/apps/reference/static/img/guides/platform/logs/select-query.pngdeleted file mode 100644index 6d9c71a9664..00000000000Binary files a/apps/reference/static/img/guides/platform/logs/select-query.png and /dev/null differdiff --git a/apps/reference/static/img/guides/platform/logs/sidebar-navigation.png b/apps/reference/static/img/guides/platform/logs/sidebar-navigation.pngdeleted file mode 100644index 41cf3ebdfe4..00000000000Binary files a/apps/reference/static/img/guides/platform/logs/sidebar-navigation.png and /dev/null differ