|
|
10.4: Enable remote logging in 10.4
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 ********************************************************** |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|