Dec 18, 2005 2. /etc/syslog.conf: A separate log file is created, but local0. is used by the MacOSX firewall and the Airport Express and probably other devices, so you get firewall and other logging in both the ipfw.log and the AirPort.log. (grep could help here). G5PMac,G4iBook Mac OS X (10.4.2).
I could have sworn that I’ve written this up before, but I just tried to link it into the article for tomorrow and it’s not on my site, so here goes. To redirect logs in OS X to a syslog server, open /etc/syslog.conf and add the following line (assuming an IP of 10.10.10.92 – replace that with the IP of your syslog box): ![Syslog Server For Mac Os X Syslog Server For Mac Os X](/uploads/1/2/6/5/126562890/990909262.jpg)
![Server Server](/uploads/1/2/6/5/126562890/893926487.jpg)
*.* @10.10.10.92
To customize the port number (e.g. 9200) use @10.10.10.92:9200 instead. This should be instant but you can always use launchctl to unload and reload syslog if for some reason it isn’t. If you’re scripting this you can then programmatically send some information to the server. For example, if you enter the following, you should see an entry for testtesttest in your syslog server for the host you just configured: Enable Syslog Server Mac Os X
logger testtesttest