You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The enhanced Redis Enterprise Software Slow Log adds the **Complexity info** field to the
37
+
The enhanced Redis Software slow log adds the **Complexity info** field to the
38
38
output data.
39
39
40
40
View the complexity info data by its respective command in the table
@@ -70,3 +70,55 @@ below:
70
70
| ZREVRANGE | N – number of elements in the zset</br>M – number of results | O(log(N)+M) |
71
71
| ZREVRANK | N – number of elements in the zset | O(log(N)) |
72
72
| ZUNIONSTORE | N – sum of element counts of all zsets</br>M – element count of result | O(N)+O(M\*log(M)) |
73
+
74
+
## View slow log
75
+
76
+
To view slow log entries for Redis Software databases, use one of the following methods:
77
+
78
+
- Cluster Manager UI:
79
+
80
+
1. To access the slow log in the Cluster Manager UI, your [cluster management role]({{<relref "/operate/rs/security/access-control/create-cluster-roles">}}) must be Admin, Cluster Member, or DB Member.
81
+
82
+
1. Select a database from the **Databases** list.
83
+
84
+
1. On the database's **Configuration** screen, select the **Slowlog** tab.
85
+
86
+
- Command line:
87
+
88
+
Use [`redis-cli`]({{<relref "/operate/rs/references/cli-utilities/redis-cli">}}) to run [`SLOWLOG GET`]({{<relref "/commands/slowlog-get">}}):
89
+
90
+
```sh
91
+
redis-cli -h <endpoint> -p <port> SLOWLOG GET <count>
92
+
```
93
+
94
+
## Change slow log threshold
95
+
96
+
The slow log includes all database commands that take longer than ten milliseconds (10,000 microseconds) by default. You can use [`redis-cli`]({{<relref "/operate/rs/references/cli-utilities/redis-cli">}}) to view or change this threshold.
97
+
98
+
To check the current threshold, run [`CONFIG GET`]({{<relref "/commands/config-get">}}):
99
+
100
+
```sh
101
+
redis-cli -h <endpoint> -p <port> CONFIG GET slowlog-log-slower-than
102
+
```
103
+
104
+
To change the threshold, run [`CONFIG SET`]({{<relref "/commands/config-set">}}):
105
+
106
+
```sh
107
+
redis-cli -h <endpoint> -p <port> CONFIG SET slowlog-log-slower-than <value_in_microseconds>
108
+
```
109
+
110
+
## Change maximum entries
111
+
112
+
The slow log retains the last 128 entries by default. You can use [`redis-cli`]({{<relref "/operate/rs/references/cli-utilities/redis-cli">}}) to view or change the maximum number of entries.
113
+
114
+
To check the current maximum, run [`CONFIG GET`]({{<relref "/commands/config-get">}}):
115
+
116
+
```sh
117
+
redis-cli -h <endpoint> -p <port> CONFIG GET slowlog-max-len
118
+
```
119
+
120
+
To change the maximum, run [`CONFIG SET`]({{<relref "/commands/config-set">}}):
121
+
122
+
```sh
123
+
redis-cli -h <endpoint> -p <port> CONFIG SET slowlog-max-len <value>
0 commit comments