osmates audit schedule
Show, set or turn off the daily export of the trail into a folder.
osmates audit schedule [<folder>] [--keep <keep>] [--off] [--json]Each day osmatesd exports the records written since the last export into the folder, as audit export does, and removes the oldest of its exports past --keep. Each export goes on from the last record of the one before, so a folder's exports chain to each other. The first export to a folder holds the whole trail. A folder or count your organization sets in a configuration profile wins and can't be changed here. Exporting needs OSMates Team.
Arguments
<folder>The folder the exports go to; it is made when it doesn't exist.
--keep <keep>How many exports the folder keeps. Default: 30.
--offTurn the daily export off.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/audit/schedule.json
folderstringkeepintegerRequiredlastobjectlast.chainobjectlast.filestringlast.folderstringRequiredlast.outcomestringRequiredOne of
exported,refused,failed.last.reasonstringlast.recordsintegerlast.removedarray of stringslast.timestring (date-time)Requiredmanagedarray of stringsRequiredEach item is one of
AllowShares,AllowClipboard,AllowDragAndDrop,AllowRemoteLocal,AllowRemoteNetwork,AllowRemoteTailnet,AllowRemoteCloudClients,RequiredEgress,EgressRules,AuditExportFolder,AuditExportKeep,ImageRepositories,AllowOtherMachineSources,ImageSigningKeys.nextstring (date-time)
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. |