Enable remote login via syslog

Edit the /etc/syslog.conf file to include local4.none in the second line, and to redirect the output of local4.* to /var/log/whatever.log (replace whatever with a name of your choice).

There’s a sample syslog.conf file at end of this hint.

Create the Saved Logs folder in the desired location. In my example, it’s at the root of the Macintosh hard driv.

Back up the daemon file to the desktop:

sudo cp /System/Library/LaunchDaemons/com.apple.syslogd.plist ~/Desktop/

Here is the restore line, if you need it:

sudo cp ~/Desktop/com.apple.syslogd.plist /System/Library/LaunchDaemons/

Edit the plist using the nano Unix editor:

sudo nano /System/Library/LaunchDaemons/com.apple.syslogd.plist

Scroll down to this line…

<string>/usr/sbin/syslogd</string>

…and add the following directly below it:

 <string>-u</string>

Save and exit.

Use the following two lines to stop and restart the daemon:

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

Create or edit the /etc/daily.local to rotate the logs and restart the service:

sudo nano /etc/daily.local

See sample daily.local at end of this document, and remember to modify the log storage location as desired.

This entry was posted in Mac OS X. Bookmark the permalink.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.