Does the Distro include a SysLog Server?

Thanks to everyone who responded. I’ve found enough to create these instructions. They work with Centos 5.x, but there may be additional work to do on Centos 6.x…


Setting up Syslog. These instructions assume that your local network is in the 192.168.1.x range:

  1. Open up Port 514 in Iptables:

add before CONFIRM:

Save and Exit.

restart iptables:

  1. Configure Syslog to monitor Port 514:

modify the line that reads:

by adding -r inside the quotes, i.e.

Then restart syslog:

  1. Verify that syslog is monitoring port 514:

If you get no result, then something’s wrong. If you get a result, then syslog is working and monitoring port 514.

  1. Configure syslog to create a logfile for your device:

Add these lines:

[code]# Put a description of what you’re logging here - this is for your benefit and

you can put anything you want

. /etc/log/logfilename.log[/code]

Note: the spaces between . and /etc/log/… must be inserted using the TAB key! logfilename.log can be whatever name you want for your logfile.

  1. Set-up whatever device allows for syslog and give it the IP address of your PBX system. If you want another Centos Machine to send logs to yours, then

Add a line like this:

Note: the spaces between . and @IPADDRESS must be inserted using the TAB key!

  1. To view the logfile:

cd /etc nano logfilename.log