Skip to content

Commit d5b0ccf

Browse files
fix(red): logs
1 parent d367ba3 commit d5b0ccf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pages/managed-databases-for-redis/how-to/monitor-redis-databases-cockpit.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ The log section is displayed below the metrics section.
8181

8282
Click **Logs** to collapse the tab and view your logs.
8383

84-
Log configuration is done by Scaleway. Note that:
84+
You can [configure Redis™ advanced settings](/managed-databases-for-redis/how-to/configure-advanced-settings-redis) to define parameters for slow logs.
85+
86+
| Parameter | Description |
87+
| ------------ | ------------------- |
88+
| `slowlog-log-slower-than` | Specifies how many microseconds (1 second = 1,000,000 microseconds) the execution time of a command must exceed to be recorded in the slow query log. |
89+
| `slowlog-max-len` | Specifies the maximum number of slow query logs that the server retains. The server retains multiple slow query logs on a first-in-first-out (FIFO) basis. When the number of slow query logs stored by the server equals the slowlog-max-len value, the server will delete the oldest slow query log before adding a new one. |
8590

86-
- The `log_error_verbosity` parameter is set to `VERBOSE` for PostgreSQL and `2` for MySQL by default.
87-
- On PostgreSQL, all queries longer than 5 seconds are logged. This parameter cannot be edited.
88-
- On MySQL, slow queries are not activated by default, but can be activated in the [advanced settings](/managed-databases-for-postgresql-and-mysql/how-to/configure-advanced-settings/) of the Database Instance. The setting is called `slow_query_log` and the time can be edited with `long_query_time`.
8991

9092
## How to activate pre-configured alerts
9193

0 commit comments

Comments
 (0)