AUDIT.VERIFY
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.
Return value
Section titled “Return value”| 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.
Examples
Section titled “Examples”127.0.0.1:6379> AUDIT.VERIFYOK chain verifiedCompatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.