Is it possible to log queries to a central syslog-ng server? Need to have mysql query logs present in an existing centralized log server.
A:
Hi, I have this configuration on a syslog-ng client :
source s_mysql_instance_1 { pipe("mysqld-1.error.log" log_prefix("mysqlsrv-instance_1")); unix-stream ("/dev/log"); internal(); };
source s_mysql_instance_2 { pipe("mysqld-2.error.log" log_prefix("mysqlsrv-instance_2")); unix-stream ("/dev/log"); internal(); };