Re: MySQL general logs to syslog
"J.O. Aho" <[email protected]> Mon, 19 Oct 2020 11:08:19 +0200
| Newsgroups | comp.databases.mysql |
|---|---|
| Message-ID | <[email protected]> |
On 19/10/2020 09.21, rana chand wrote: > Hi All, > > Currently all MySQL error logs and general logs are stored in /var/log/mysql/error.log and /var/log/mysql/mysql.log > > I want to redirect these logs to syslog. So, I have addes the following to the configuration file of mysql: > > [mysqld] > log-syslog = on > > Now only MySQL error logs are only redirected to the syslog. > Is there a way to redirect both the error and general logs to syslog. I haven't really been trying to move the logging of, but it seems that people have created a fifo pipe, log to it and then configure the syslog to read that fifo pipe as a source. https://dba.stackexchange.com/questions/3552/how-do-i-output-mysql-logs-to-syslog As far as I can see, mysql supports only error log written to syslog with the configuration options the daemon supplies. -- //Aho