While working on a recent Mac project, I wrote this script that parses the contents of an HFS+ ‘system.log’ file. The script will take in the provided log file and output an organized database file. Although the newer APFS file system now utilizes unified logging, I figured I would publish this very simple script in case anyone was working with older Macs. You can download it on my new github page at the bottom!
The script breaks the system.log file into four columns; Month, Time, Process, and Message. This database organization allows for easier entry filtering and itemization of log components when dealing with the possible tens-of-thousands of log entries.
Email me with any questions or issues you run into!