The audit log plugins needs fixes to have the ability to filter out only the certain kinds of events. Currently audit_log_policy is mutually exclusive, except "ALL". It's highly desirable to have the ability to output, for example, QUERIES+LOCK messages.
This is my draft implementation with blocking statements history and output with audit log plugin instead off error log: https:/ /github. com/vlad- lesin/percona- server/ tree/lwt- bug-lp1657737- 5.7
The audit log plugins needs fixes to have the ability to filter out only the certain kinds of events. Currently audit_log_policy is mutually exclusive, except "ALL". It's highly desirable to have the ability to output, for example, QUERIES+LOCK messages.