Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -103,16 +101,14 @@ influxctl query \

**Filter by namespace (database) and time range:**

```sh
```sh { placeholders="DATABASE_TOKEN" }
influxctl query \
--token DATABASE_TOKEN \
--database _internal \
--language sql \
'SELECT * FROM query_log WHERE namespace_name = '\''my_database'\'' AND time >= now() - INTERVAL '\''1 day'\'' LIMIT 50'
```

{{% /code-placeholders %}}

**Example output:**

```
Expand Down