Skip to main content
Question

changing the amount of time install.log is kept

  • December 15, 2023
  • 1 reply
  • 107 views

Forum|alt.badge.img+3

according to jamf protect I am supposed to set computers to keep the install.log file for 365 days, does anyone know how you can do this, preferably in a policy or config profile so it can be done on a larger scale.

1 reply

Forum|alt.badge.img+19
  • Honored Contributor
  • December 15, 2023

That setting is part of the CIS compliance settings. You should be looking at:

https://trusted.jamf.com/docs/establishing-compliance-baselines

and 

https://github.com/usnistgov/macos_security

For help in creating policies and profiles to set and audit these settings. Jamf Compliance Editor is a very nice front end to mSCP. 

(FYI, there is the command that mSCP uses to make this change.

/usr/bin/sed -i '' "s/\\* file \\/var\\/log\\/install.log.*/\\* file \\/var\\/log \\/install.log format='\\$\\(\\(Time\\)\\(JZ\\)\\) \\$Host \\$\\(Sender\\)\\[\\$\\(PID\\\\)\\]: \\$Message' rotate=utc compress file_max=50M size_only ttl=365/g" /etc/asl/com.apple.install