Request an invite
Docs menu

osmates audit schedule

Show, set or turn off the daily export of the trail into a folder.

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

--off

Turn the daily export off.

--json

Print machine-readable JSON.

JSON output

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

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

folderstring
keepintegerRequired
lastobject
last.chainobject
last.filestring
last.folderstringRequired
last.outcomestringRequired

One of exported, refused, failed.

last.reasonstring
last.recordsinteger
last.removedarray of strings
last.timestring (date-time)Required
managedarray of stringsRequired

Each 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.

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.

Report a problem with this page