Description\n-----------\n\nThere are a few status variables related to the MariaDB Audit Plugin, once it has been installed. These variables can be displayed using the SHOW STATUS statement like so:\n\n``sql\nSHOW STATUS LIKE 'server_audit%';\n\n+----------------------------+------------------+\n| Variable_name              | Value            |\n+----------------------------+------------------+\n| Server_audit_active        | ON               |\n| Server_audit_current_log   | server_audit.log |\n| Server_audit_last_error    |                  |\n| Server_audit_writes_failed | 0                |\n+----------------------------+------------------+\n`\n\nStatus Variables\n\nBelow is a list of all status variables related to the Audit Plugin. These cannot be set: These are not to be confused with system variables, which can be set. See Server Status Variables for a complete list of status variables that can be viewed with the SHOW STATUS statement. See also the Full list of MariaDB options, system and status variables.\n\nServer_audit_active\n\n Description: If the auditing is actually working. It gets the ON value when the logging is successfully started. Then it can get the OFF value if the logging was stopped or log records can't be properly stored due to file or syslog errors.\n Data Type: boolean\n\nServer_audit_current_log\n\n Description: The name of the logfile or the SYSLOG parameters that are in current use.\n Data Type: string\n\nServer_audit_last_error\n\n Description: If something went wrong with the logging here you can see the message.\n Data Type: string\n\nServer_audit_writes_failed\n\n Description: The number of log records since last logging-start that weren't properly stored because of errors of any kind. The global value can be flushed by FLUSH STATUS.\n Data Type: numeric\n* Default Value: 0`\n\nURL: https://mariadb.com/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-status-variables