I'm going mad. I'm trying to get rsyslog to send log files to logentries.com. This works perfectly until I try to log mysql-slow.log.
The config is pretty simple
module(load="imfile" PollingInterval="1") #needs to be done just once
# File 1
input(type="imfile" File="/var/lib/mysql/mysql-slow.log"
Tag="mysql-slow"
Severity="notice"
StateFile="mysql-slow"
Facility="local7"
)
And if I delete the file, and write to it manually, I see the logs going out over tcp and arriving in logentries.com
However, if MySQL writes to the mysql-slow.log... nothing, at all. I've tried changing the permissions/users/groups, but that makes no difference. If I write something to that file using Vim, it's perfect, if mysql does... nothing.
I can't think of what possibly can be going wrong! Help!
Cheers
Alan