Introduction
The Unified Logging system introduced by Apple in macOS 10.12 Sierra fundamentally changed how operating system events are recorded. Prior to Unified Logging, macOS relied heavily on traditional text-based logs stored in locations such as:
- /var/log/system.log
- /var/log/install.log
- /var/log/secure.log
Unified Logging replaced many conventional text logs with a highly compressed, structured, and indexed logging framework designed to improve performance, privacy, and diagnostic capabilities.
From a digital forensic perspective, Unified Logs can provide valuable evidence relating to:
- User activity
- Application execution
- Device connections
- System startup and shutdown
- Network activity
- Authentication events
- Software installation
- Security incidents
- USB usage
- Cloud synchronization
- File access events
These logs often contain evidence unavailable elsewhere.
Unified Logging Architecture
The logging framework consists of several components:
- Component
- Function
- logd
- Central logging daemon
- os_log API
- Application logging interface
- TraceV3 files
- Binary log storage
- UUID text files
- Process identification
- Timesync files
- Timestamp correction
- Activity tracing
- Performance correlation
Applications write events through the:
- os_log()
- API.
The logging daemon (logd) receives events and determines:
- Whether to retain them
- Privacy level
- Compression
- Persistence duration
- Log Levels
Unified Logging supports multiple levels.
Level Purpose
Default Normal events
Info Informational messages
Debug Troubleshooting
Error Errors
Fault Critical failures
Debug messages may be absent unless explicitly enabled.
Privacy Controls
Apple introduced privacy mechanisms such as os_log(“User name: %{private}s”, username)
Values marked as private and sensitive
may appear as:
<private>
This reduces forensic visibility.
Primary Storage Locations
Unified logs are primarily stored within /private/var/db/diagnostics/
Additional artefacts exist in /private/var/db/uuidtext/ and /private/var/db/diagnostics/timesync/
TraceV3 Files
The principal forensic artefacts are TraceV3 files, such as 0000000000000001.tracev3
Characteristics:
- Binary format
- Compressed
- Indexed
- Chunk-based storage
- Efficient searching
These files cannot be interpreted directly using text editors.
Timesync Files
Timestamp correction files provide:
- Clock synchronization information
- Time zone adjustments
- Drift corrections
Example location /private/var/db/diagnostics/timesync/
These files are crucial when constructing timelines.
UUIDText Files
Processes are assigned UUIDs.
Location /private/var/db/uuidtext/
These files permit:
- Executable identification
- Process mapping
- Symbol resolution
Log Persistence
Apple categorizes logs by persistence.
Category Persistence
Memory only Lost on reboot
Short-term disk Hours to days
Persistent Weeks to months
Retention depends upon:
- Available storage
- System activity
- Log importance
- macOS version
High-volume systems may overwrite logs rapidly.
Timestamp Format
Logs frequently use:
- Absolute time
- Continuous boot time
- Nanosecond precision
Example 2026-06-20 14:23:15.123456+0100
Timesync files may be required to accurately reconstruct timelines.
Command-Line Examination
Apple provides the log utility.
Display Recent Logs
log show
Last 24 Hours
log show --last 24h
Specific Process
log show --predicate 'process == "Safari"'
Specific Event Type
log show --predicate 'eventMessage contains "USB"'
Live Monitoring
log stream
Predicate Filtering
Powerful filtering uses predicates.
Examples:
log show --predicate 'process == "loginwindow"'
log show --predicate 'subsystem == "com.apple.security"'
log show --predicate 'senderImagePath contains "Dropbox"'
Important Forensic Evidence
User Logins
Processes:
- loginwindow
- opendirectoryd
May reveal:
- Login attempts
- User switching
- Session creation
Authentication Events
Subsystems:
- Security
- Authentication Services
Examples:
- Password failures
- Successful logins
- Account unlocks
Application Execution
Logs may record:
- Application launches
- Crashes
- Background execution
Examples:
- Safari
- Chrome
- Microsoft Word
USB Device Activity
Subsystems:
- IOKit
- USB
Potential evidence:
- Device insertion
- Device removal
- Vendor IDs
- Serial numbers
Network Activity
Evidence may include:
- Wi-Fi changes
- VPN connections
- Interface activity
- DNS events
Software Installation
Processes:
- installd
- softwareupdated
Can reveal:
- Package installation
- Application updates
- System upgrades
Sleep and Wake Events
Processes:
- powerd
- kernel
Useful for:
- User activity reconstruction
- Device usage timelines
Crash and Fault Analysis
Critical failures generate:
- Fault logs
- Panic information
- Application crashes
Associated locations:
/Library/Logs/DiagnosticReports/ and ~/Library/Logs/DiagnosticReports/
Acquisition Considerations
Investigators should acquire:
/private/var/db/diagnostics//private/var/db/uuidtext//private/var/db/diagnostics/timesync/
Acquisition methods:
- Target disk mode
- Logical acquisition
- APFS imaging
- Live collection
Live acquisition often preserves volatile logs.
APFS Considerations
Because macOS uses the Apple File System file system, investigators may encounter:
- Snapshots
- Volume groups
- System volumes
- Data volumes
Logs typically reside on the Data volume.
Parsing Tools
Common forensic tools include:
- log show
- log stream
- UnifiedLog
- mac_apt
- Mandiant macOS UnifiedLogs parser
- Commercial forensic platforms
Commercial tools include:
- Cellebrite Physical Analyzer
- Magnet AXIOM
- Forensic Toolkit
- EnCase Forensic
Example Investigation Scenario
A suspect is alleged to have connected a USB drive and copied data.
Unified Logs may reveal:
- USB insertion event.
- Mounting of the storage device.
- Finder activity.
- File access operations.
- Device removal.
- User logout.
Correlating these events with:
- File system metadata
- APFS timestamps
- Spotlight databases
- External device artefacts
can establish a reliable activity timeline.
Limitations
Investigators should recognize several limitations:
- Log retention is limited.
- Older events may be overwritten.
- Private fields may be redacted.
- Debug logging is often disabled.
- Some events remain memory resident only.
- Version differences exist between macOS releases.
Evidential Value
Unified Logs frequently provide evidence relating to:
- User presence.
- Application usage.
- Device connections.
- Authentication activity.
- Network activity.
- System state changes.
- Security events.
Because many events are timestamped with extremely high precision, Unified Logs can significantly strengthen digital timelines and corroborate evidence obtained from other artefacts.
Conclusion
The macOS Unified Logging system represents one of the most valuable sources of evidence on modern Apple computers.
Although the binary TraceV3 format introduces additional complexity, the combination of log records, UUID mappings, and time synchronization files allows investigators to reconstruct detailed system activity.
Successful forensic examination requires careful preservation of the diagnostic databases, accurate timestamp interpretation, and correlation with other artefacts such as APFS metadata, application data, browser histories, and external device records.
When properly interpreted, Unified Logs can provide highly probative evidence regarding user actions, device activity, and system events on macOS systems.
About Athena Forensics
For information on our computer forensic expert services or if you require any advice or assistance please contact a member of our team on 0330 123 4448 or via email on enquiries@athenaforensics.co.uk, further details are available on our contact us page.
Our client’s confidentiality is of the utmost importance. All correspondence is treated with discretion, from initial contact to conclusion of the matter.
We are fully aware of the significance and importance of the information that they encounter and we have been accredited to ISO 9001 for 14 years.
Our premises along with our security procedures have been inspected and approved by law enforcement agencies and we do not disclose personal information to other companies or suppliers.
Our team are all security cleared and we offer non-disclosure agreements if required.
Our premises along with our security procedures have been inspected and approved by law enforcement agencies.
Athena Forensics do not disclose personal information to other companies or suppliers.