AUDIT.INFO
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.
Return value
Section titled “Return value”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.
Examples
Section titled “Examples”127.0.0.1:6379> AUDIT.INFO1) "total_entries"2) (integer) 12043) "file_size_bytes"4) (integer) 3891165) "chain_valid"6) (integer) 17) "last_sequence"8) (integer) 1204Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.