Redis logs include audit logs, slow logs, and operational logs. This topic describes the fields of these logs.
Audit logs
The audit logs are stored in a Logstore named redis_audit_log_standard. The following table describes the fields of an audit log.
Field | Description |
__topic__ | The topic of the log.
|
account | The name of the database account. |
command | The Redis command that is run on the database. |
db | The name of the database. |
extend_information | The additional information. |
instanceid | The ID of the Redis instance. |
ip | The IP address of the database server. |
is_cautious | Indicates whether the operation is dangerous. Valid values:
|
latency | The request latency.
|
time | The timestamp. Example: 1597048424. |
type | The type of the log. |
Slow logs
The slow logs are stored in a Logstore named redis_slow_run_log. The following table describes the fields of a slow log.
Field | Description |
__topic__ | The topic of the log.
|
account | The name of the database account. |
command | The Redis command that is run on the database. |
db | The name of the database. |
extend_information | The additional information. |
instanceid | The ID of the Redis instance. |
ip | The IP address of the database server. |
is_cautious | Indicates whether the operation is dangerous. Valid values:
|
latency | The request latency.
|
time | The timestamp. Example: 1597048424. |
type | The type of the log. |
Operational logs
The operational logs are stored in a Logstore named redis_slow_run_log. The following table describes the fields of an operational log.
Field | Description |
__topic__ | The topic of the log. Valid value: redis_run_log. |
extend_information | The additional information. |
instanceid | The ID of the Redis instance. |
node_type | The type of the log.
|
runlog | The content of the operational log. |
time | The timestamp. Example: 1597048424. |