*** Please type your report below this line ***
The rsyslog documentation states the following (in
/usr/share/doc/rsyslog-doc/html/rsyslog_mysql.html):
If you have modified the default, use your name here. Database-userid and
-password are the credentials used to connect to the database. As they are
stored in clear text in rsyslog.conf, that user should have only the least
possible privileges. It is sufficient to grant it INSERT privileges to the
systemevents table, only.
However, when I look at the permissions in MySQL, I see:
mysql> show grants for rsyslog@localhost;
+----------------------------------------------------------------------------------------------------------------+
| Grants for rsyslog@localhost
|
+----------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'rsyslog'@'localhost' IDENTIFIED BY PASSWORD
'*blahblahpasswordremoved' |
| GRANT ALL PRIVILEGES ON `Syslog`.* TO 'rsyslog'@'localhost'
|
+----------------------------------------------------------------------------------------------------------------+
I would prefer giving INSERT privileges to this user (or another called
rsyslog_logger) and then if necessary having a saparate user which can
do selects on the database.
- Paul