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
Hi,

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 ?

thks,

laurent

**********************************************************
*.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

lpr.info /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.* @127.0.0.1:32376
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.syslogd</string>
<key>ServiceDescription</key>
<string>Apple System Log Daemon</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/syslogd</string>
<string>-u</string>
</array>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>
**********************************************************



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

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

/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 | # ]