There are many options for logging syslog messages to a datababse, both commercial and open source. It is important to note that the default syslogd in most any unix, bsd or linux system will not work.
Open source options for logging to a database are:
- syslog-ng - This requires an external script that reads data that syslog-ng writes to a fifo. It's not the cleanest implementation, but it is quite popular.
- rsyslog - rsyslog maintains much of the same feel of the base syslogd's, as compared to syslog-ng, but it greatly extends the basic capabilities to include native database connections for writing logs.
- sysklogd-sql - this is a port of the standard sysklogd that adds the ability to log to a database.
- nxlog - has an om_dbi module to store logs in a db
There are many commercial tools that do this as well. I will add them as I have time.