Debian
From rsyslog wiki
Starting with lenny, rsyslog is the default syslogd for Debian.
Packages for Debian are available from the Debian archive and can be installed via
aptitude install rsyslog
The MySQL output plugin is in a separate package.
aptitude install rsyslog-mysql
will install it and automatically setup your MySQL database. By default it creates a database named "Syslog" and a user "rsyslog" with a autogenerated password. A configuration file /etc/rsyslog.d/mysql.conf is generated with the correct values and rsyslog is reloaded to pick up the changed configuration.
The PostgreSQL output plugin is in a separate package.
aptitude install rsyslog-pgsql
will install it and automatically setup your PostgreSQL database. By default it creates a database named "Syslog" and a user "rsyslog" with a autogenerated password. A configuration file /etc/rsyslog.d/pgsql.conf is generated with the correct values and rsyslog is reloaded to pick up the changed configuration.

