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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store