Audit Plugin
Plugin API reference: Audit Plugin. Generated from the MariaDB server headers by doxygen and moxygen.
API for Audit plugin. (MYSQL_AUDIT_PLUGIN)
Groups
LOG events occurs before emitting to the general query log. ERROR events occur before transmitting errors to the user. RESULT events occur after transmitting a resultset to the user. STATUS events occur after transmitting a resultset or errors to the user.
CONNECT occurs after authentication phase is completed. DISCONNECT occurs after connection is terminated. CHANGE_USER occurs after COM_CHANGE_USER RPC is completed.
LOCK occurs when a connection "locks" (this does not necessarily mean a table lock and also happens for row-locking engines) the table at the beginning of a statement. This event is generated at the beginning of every statement for every affected table, unless there's a LOCK TABLES statement in effect (in which case it is generated once for LOCK TABLES and then is suppressed until the tables are unlocked).
Classes
The descriptor structure, that is referred from st_mysql_plugin.
Macros
MYSQL_AUDIT_CLASS_MASK_SIZE
#define MYSQL_AUDIT_CLASS_MASK_SIZE 1Defined in plugin_audit.h:34
MYSQL_AUDIT_INTERFACE_VERSION
Defined in plugin_audit.h:36
Class Definitions
st_mysql_audit
Defined in plugin_audit.h:195
The descriptor structure, that is referred from st_mysql_plugin.
release_thd() event occurs when the event class consumer is to be disassociated from the specified THD. This would typically occur before some operation which may require sleeping - such as when waiting for the next query from the client.
event_notify() is invoked whenever an event occurs which is of any class for which the plugin has interest. The second argument indicates the specific event class and the third argument is data as required for that class.
class_mask is an array of bits used to indicate what event classes that this plugin wants to receive.
Public Attributes
interface_version
Defined in plugin_audit.h:197
release_thd
Defined in plugin_audit.h:198
event_notify
Defined in plugin_audit.h:199
class_mask
Defined in plugin_audit.h:200
This page is licensed: GPLv2
Last updated
Was this helpful?

