Skip to main content
The Event logging control sets how your devices keep their logs. On a Mac, set how long the install log is kept. On Windows, set the size, retention, location and access of the Application, Security, Setup and System logs, forward events to a collector, encrypt protected event logs, and log PowerShell activity.

Platform compatibility

Requires macOS 15 or later.

Set up the control

1

Add a configuration

Go to MDM > Controls and open Event logging. Select the platform tab, then click Add configuration.
2

Configure the settings

Set each setting you want to enforce. See the settings below. On Windows, set at least one setting.
3

Select targeting

Choose which devices to apply the configuration to: all devices on that platform, specific device groups, or a custom target. Click Activate to deploy the configuration. Save keeps it inactive.

Settings

This is how many days the Mac keeps /var/log/install.log. Any size cap on the log is removed so that it isn’t purged sooner.

How it works

Primo runs a script on each Mac and checks the result with a policy. The script saves the Mac’s own rule for the install log, then sets its retention. The rest of the log configuration stays as macOS or an administrator left it.If someone edits the install log rule on the Mac, the policy fails and Primo runs the script again.When you remove the configuration, Primo puts back the Mac’s own rule.

Modify or remove the control

Open the control from MDM > Controls to edit, deactivate or replace a configuration.