Request an invite
Docs menu

osmates audit verify

Check the trail's chain, its heads in the system log and copies kept elsewhere.

Usage
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>Repeatable

A kept copy of the trail or an export: a .jsonl file or a folder of them. Repeat it for more.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/audit/verify.json

copiesarray of objectsRequired
copies[].filesintegerRequired
copies[].pathstringRequired
copies[].problemsarray of objectsRequired
problemsintegerRequired
trailobjectRequired
trail.filesintegerRequired
trail.firstinteger

At least 0.

trail.fromstring
trail.gapsarray of objectsRequired
trail.headobject
trail.headsCheckedintegerRequired
trail.headsMatchedintegerRequired
trail.headsPrunedintegerRequired
trail.lastinteger

At least 0.

trail.notesarray of stringsRequired
trail.problemsarray of objectsRequired
trail.prunesarray of objectsRequired
trail.tostring

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.
1The command printed its result, whose check failed.

Report a problem with this page