Setup Syslog Server on Mac

echo "local0.notice    /var/log/airport.log" >> /etc/syslog.conf

touch /var/log/airport.log

vim /System/Library/LaunchDaemons/com.apple.syslogd.plist
# Uncomment NetworkListener Section

launchctl unload /System/Library/LaunchDaemons/com.apple.syslogd.plist
launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist

ln -s /usr/bin ~/usrbin
ln -s /usr/sbin ~/usrsbin

Click System Perferences -> Security -> Firewall and Click +
Select ~/usrbin/syslog and ~/usrsbin/syslogd

Reference:
http://meinit.nl/enable-apple-mac-os-x-machine-syslog-server

Leave a Reply

Your email address will not be published. Required fields are marked *