Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

AUDIT.INFO

Last updated
AUDIT.INFO
Group
Audit
Complexity
O(1)
Arity
1 (exactly, counting the command name)
Flags
admin, fast
HotKV Cloud
Scale
On-Premise
requires the audit-log license feature

AUDIT.INFO summarizes this node’s audit log, the tamper-evident record of the commands clients ran (see Security: Audit log for how to turn it on and what each entry holds). Each node of a cluster keeps its own log.

chain_valid tells you whether the log is intact. It reflects the most recent check, and is 1 if the log was never checked; run AUDIT.VERIFY for a fresh answer.

A flat array of field and value pairs, in RESP2 and RESP3:

Field Type Meaning
total_entries Integer Entries written to the log
file_size_bytes Integer Size of the current log file
chain_valid Integer 1 when the log is intact, 0 when an entry was altered, removed or inserted
last_sequence Integer Sequence number of the latest entry

With the audit log turned off, every count is 0 and chain_valid is 1. Without a license that includes audit-log, the reply is NOLICENSE audit-log requires a HotKV license. Contact sales@hotkv.com.

127.0.0.1:6379> AUDIT.INFO
1) "total_entries"
2) (integer) 1204
3) "file_size_bytes"
4) (integer) 389116
5) "chain_valid"
6) (integer) 1
7) "last_sequence"
8) (integer) 1204

HotKV-only command.

AUDIT.VERIFY, AUDIT.EXPORT, AUDIT.ROTATE