log
SafeQuery unified logs
log show --last 1h --predicate '...'
Queries the unified log; --predicate filters by process/subsystem; stream follows live.
Examples
log show --last 30m --predicate 'process == "WindowServer"'Logs for one process
Syntax
log show [--last 1h] [--predicate 'expr'] / log stream
Before you run it
Read only.
Used when you see
Time Machine backup fails
3
See the whole flow →Look for backupd errors in unified logsFilter on process == "backupd".
Related commands
- journalctlsystemd logs
- launchctlServices (Mac)
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store