osmates audit verify
Check the trail's chain, its heads in the system log and copies kept elsewhere.
osmates audit verify [--against <against> ...] [--json]Names the file and line of each record that was changed, rewritten, deleted or moved. With --against, also checks a kept copy of the trail's files, such as Time Machine's, or exports audit export wrote, and each of their lines against the trail. Exits 1 when it finds a problem.
Arguments
--against <against>RepeatableA kept copy of the trail or an export: a .jsonl file or a folder of them. Repeat it for more.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/audit/verify.json
copiesarray of objectsRequiredcopies[].filesintegerRequiredcopies[].pathstringRequiredcopies[].problemsarray of objectsRequiredproblemsintegerRequiredtrailobjectRequiredtrail.filesintegerRequiredtrail.firstintegerAt least 0.
trail.fromstringtrail.gapsarray of objectsRequiredtrail.headobjecttrail.headsCheckedintegerRequiredtrail.headsMatchedintegerRequiredtrail.headsPrunedintegerRequiredtrail.lastintegerAt least 0.
trail.notesarray of stringsRequiredtrail.problemsarray of objectsRequiredtrail.prunesarray of objectsRequiredtrail.tostring
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |
| 1 | The command printed its result, whose check failed. |