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.VERIFY

Last updated
AUDIT.VERIFY
Group
Audit
Complexity
O(N) where N is the number of entries
Arity
1 (exactly, counting the command name)
Flags
admin, slow
HotKV Cloud
Scale
On-Premise
requires the audit-log license feature

AUDIT.VERIFY reads the whole current audit log file and checks that no entry was edited, deleted or inserted after it was written. Run it on a schedule, or before you hand the log to an auditor. The result is also what AUDIT.INFO reports as chain_valid for a large log.

The check reads the full file, so on a very large log it takes a while.

Case RESP2 RESP3
The log is intact (or empty) Simple string OK chain verified Simple string
An entry was changed, removed or inserted Error ERR audit chain verification failed - tampering detected Same error

The server log names the first entry that fails. 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.VERIFY
OK chain verified

HotKV-only command.

AUDIT.INFO, AUDIT.EXPORT