Export the audit trail
The audit trail can go to your log collector each day, or into a file for any time range.
Requires OSMates Team.
Export each day to a folder
- Add
AuditExportFolderto your organization's profile, with the folder. - To keep more or fewer than 30 exports, add
AuditExportKeep. - Have your collector take each
osmates-audit-<time>.jsonlfile from the folder.
The first export holds the whole trail, and each later one the records since the one before. People can't change the folder or turn the export off.
Without a profile, set the folder in Terminal:
osmates audit schedule ~/Library/Logs/OSMates\ Audit
Run osmates audit schedule alone to see the last export and the next one.
Export a time range
To export the records since 1 November 2026 to a file:
osmates audit export --since 2026-11-01 --to audit.jsonl
Add --machine or --client for one machine's or one agent's records.
Verify an export
To check the exports in a folder against the trail:
osmates audit verify --against ~/Library/Logs/OSMates\ Audit
It exits 1 when a record was changed or removed, or doesn't match the trail.
Your collector can also check an export without OSMates:
- The first line names the export's schema.
- Each line between the first and the last is a record as OSMates stored it.
- A record's
hashis the SHA-256 of its line without thehashmember. - A record's
previs thehashof the record before. - The first record's
prevmatches the lasthashof the export before. - The last line counts the records. An export without it was cut short.
Limits
- A folder must be a full path or start with
~/. A wrongAuditExportFolderorAuditExportKeepis left out. - An export is only as safe as its folder. Programs running as the person can change a folder the person can write to.