Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Enable remote logging in 10.4' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Enable remote logging in 10.4
Authored by: turkpipouunu on May 11, '07 02:53:38AM

Thks 4 the hint. It works fine to the extent that the machine is listening to the router and i can use the "tail -f /var/log/system.log" command to check it. However, nothing is written to the log file i specify. Here are the config files i use . Anything i am doing wrong ?



*.err;kern.*;auth.notice;authpriv,remoteauth,install.none;mail.crit /dev/console
*.notice;authpriv,remoteauth,ftp,install.none;kern.debug;mail.crit;local4.none /var/log/system.log

# Send messages normally sent to the console also to the serial port.
# To stop messages from being sent out the serial port, comment out this line.
#*.err;kern.*;auth.notice;authpriv,remoteauth.none;mail.crit /dev/tty.serial

# The authpriv log file should be restricted access; these
# messages shouldn't go to terminals or publically-readable
# files.
authpriv.*;remoteauth.crit /var/log/secure.log /var/log/lpr.log
mail.* /var/log/mail.log
ftp.* /var/log/ftp.log
netinfo.err /var/log/netinfo.log
install.* /var/log/install.log
install.* @
local0.* /var/log/ipfw.log
local4.* /var/log/remote.log

*.emerg *


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">;
<plist version="1.0">
<string>Apple System Log Daemon</string>

/bin/mv /var/log/remote.log /archivedlogs/`/bin/date +%m%d%y`.txt

launchctl unload /System/Library/LaunchDaemons/
sleep 1
launchctl load /System/Library/LaunchDaemons/

/usr/sbin/chown webtest /archivedlogs/`/bin/date +%m%d%y`.txt
/usr/bin/chgrp admin /archivedlogs/`/bin/date +%m%d%y`.txt

[ Reply to This | # ]