Thursday, March 6, 2025
HomeAppleQuarantine Edition – Exploring USBMSC devices with --style — mac4n6.com

Quarantine Edition [Entry 7] – Exploring USBMSC devices with –style — mac4n6.com



The compact option removes the Activity ID and TTL from the ‘default’ output while compressing other fields.

The next couple of log output styles is ‘json’ and ‘ndjson’. The first being json with whitespace, while the second is a single line for each entry. I’ve highlighted each entry to better show the structure in these two examples. I like how the json output shows the full paths for senderImagePath and processImagePath. It also shows a quite a few additional fields. Not exactly human-readable for more than a few entries, but this could be imported into another viewer or pumped through scripting utilities.

log show --predicate "eventMessage contains 'USBMSC'" --style json
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments

Skip to toolbar