This document describes how to view recent queries against your database using the PlanetScaleDB console.
To view recent queries against your database, follow these steps:
This opens the Clusters Overview.
This opens the Overview for your cluster.
This opens the Overview for your database.
PlanetScaleDB creates a Vitess VTGate component for each cloud provider region for your database. Click the cloud provider region to view the query log for that region. This opens the status dashboard for one of the Vitess VTGate components in that region.
Your browser will take about ten seconds to load this page, because the dashboard is sampling the current queries.
A table appears that displays a list of queries and details for each query. These are the queries that the gateway receives during the sampling period after you request the logs.
Because this log only shows the queries to one of several VTGate components for this cloud provider region, it may not contain all queries against this region during the sampling period.