We have a financial institution we are bring on as a client running on Mac's. The are looking to collect all the system logs from each computer every night and keep each for 90 days. I have seen others have scrips to collect system logs at time of an incident when someone is having an issue but nothing that will collect user data for security reason automatically. Can anyone point me in the direction of a 3rd party product or script structure?

1 Answer 1


You can use an automated central logging system, like Filebeat + ElasticSearch. The automated collection of logs you are referring to could be CMD+ALT+CONTROL+SHIFT+. which is a sysdiagnose command. It takes a long time to run and isn't generally considered a good idea to use as 'standard' log collection.

Using something that is actually made for collecting logs will help you out a whole lot better than a simple script.

If you wanted to go the script route anyway, you can create an applescript that collects to logs and copies it to a server. You can then make a Calendar appointment which has the option to add a script as an action. Another method would be using osascript from the commandline in combination with a crontab entry.

A third more user-friendly option for situations where you don't have a proper server system where you can add these things is Apple Remote Desktop Administrator. You buy it from the App Store and then you can setup periodic jobs to gather logs. You will also be able to completely remotely manage all the Macs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .