diff --git a/content/influxdb3/cloud-dedicated/query-data/troubleshoot-and-optimize/query-log.md b/content/influxdb3/cloud-dedicated/query-data/troubleshoot-and-optimize/query-log.md index ccbc1d1d7..e1be9be97 100644 --- a/content/influxdb3/cloud-dedicated/query-data/troubleshoot-and-optimize/query-log.md +++ b/content/influxdb3/cloud-dedicated/query-data/troubleshoot-and-optimize/query-log.md @@ -88,11 +88,9 @@ Query log entries are stored in the `_internal` database. 3. Run the **query** subcommand with `--database` and `--language` (and optionally `--config`). Global flags such as `--config` must come before the command; query flags such as `--database`, `--language`, and `--token` must come after `query`. -{{% code-placeholders "DATABASE_TOKEN" %}} - **List recent successful queries with compute duration above a threshold (for example, 0.6 ms):** -```sh +```sh { placeholders="DATABASE_TOKEN" } influxctl query \ --token DATABASE_TOKEN \ --database _internal \ @@ -103,7 +101,7 @@ influxctl query \ **Filter by namespace (database) and time range:** -```sh +```sh { placeholders="DATABASE_TOKEN" } influxctl query \ --token DATABASE_TOKEN \ --database _internal \ @@ -111,8 +109,6 @@ influxctl query \ 'SELECT * FROM query_log WHERE namespace_name = '\''my_database'\'' AND time >= now() - INTERVAL '\''1 day'\'' LIMIT 50' ``` -{{% /code-placeholders %}} - **Example output:** ```