Created
November 6, 2022 09:13
-
-
Save dreness/7a68b803a3ca0a3fbb67492b139f106a to your computer and use it in GitHub Desktop.
logrc config for log(1) in macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.logrc config for log(1) in macOS | |
show: | |
--style compact | |
--color always | |
--last 4h | |
stream: | |
--info | |
--debug | |
--style ndjson | |
predicate: | |
errs 'messageType IN { "error", "fault" }' | |
mdns 'subsystem == "com.apple.mDNSResponder"' | |
prefs 'category == "cfprefsd"' | |
keys 'category == "cfprefsd" and eventMessage contains "wrote"' | |
kern 'sender == "kernel"' | |
ssl | |
'(subsystem == "com.apple.network") and ' | |
'(category == "boringssl") and ((eventMessage contains "TRAFFIC_SECRET"))' | |
dnsfailure | |
'process == "symptomsd" and message contains "DNS failure"' | |
circles | |
'((process == "Circles") && (subsystem != "com.apple.CFnetwork") && ' | |
'(subsystem != "com.apple.network") && ' | |
'NOT (senderImagePath contains "CFNetwork") && ' | |
'NOT (senderImagePath endsWith "RunningBoardServices"))' | |
dockerdesktop | |
'process matches ".*(ocker|vpnkit).*" || ' | |
#'(process in {"taskgated-helper", "launchservicesd", "kernel"} && ' | |
'(process in {"taskgated-helper", "kernel"} && ' | |
'eventMessage contains[c] "docker")' | |
sps | |
'(subsystem == "com.apple.mDNSResponder") and ' | |
'(category == "SPS")' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment