All Products
Search
Document Center

Simple Log Service:Log fields

Last Updated:Oct 16, 2024

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.

  • redis_audit_log: the audit log of the database

  • redis_proxy_audit_log: the audit log of the proxy

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:

  • 0: No

  • 1: Yes

latency

The request latency.

  • If the audit log belongs to the database, the unit of the latency field is microseconds.

  • If the audit log belongs to the proxy, the unit of the latency field is milliseconds.

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.

  • redis_slow_log: the slow log of the database

  • redis_proxy_slow_log: the slow log of the proxy

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:

  • 0: No

  • 1: Yes

latency

The request latency.

  • If the slow log belongs to the database, the unit of the latency field is microseconds.

  • If the slow log belongs to the proxy, the unit of the latency field is milliseconds.

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.

  • proxy: the operational log of the proxy

  • db: the operational log of the database

runlog

The content of the operational log.

time

The timestamp. Example: 1597048424.