Uncategorized

Search Logs For A Specific Application in macOS

I’ve covered the log command previously, but here’s a quick and easy one-liner to find logs for a specific application. Simply run the log command with the show verb. I’m including –last to only look at the last couple of minutes and then using –predicate to define that the processImagePath contains the word Slack, the app I’m searching for:

log show --last 120s --predicate 'processImagePath CONTAINS[c] "Slack"'