Skip to content

Instantly share code, notes, and snippets.

@NSEcho
Created February 27, 2021 18:10
Show Gist options
  • Save NSEcho/8f6aff6eca9f59bbccbf33e6d01631ad to your computer and use it in GitHub Desktop.
Save NSEcho/8f6aff6eca9f59bbccbf33e6d01631ad to your computer and use it in GitHub Desktop.
How to monitor syslog on device
$ launchctl load -w /System/Library/LaunchDaemons/com.apple.syslogd.plist
$ launchctl start /System/Library/LaunchDaemons/com.apple.syslogd.plist
$ launchctl list | grep -i syslog # To check if it is running
6863	0	com.apple.syslogd
$ apt-get install socat
$ socat - UNIX-CONNECT:/var/run/lockdown/syslog.sock

========================
ASL is here to serve you
> watch
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment