MySQL Auditing with MariaDB Auditing Plugin

February 15, 2016
Author
Manjot Singh
Share this Post:

MariaDB no longer meeting your needs?

Migrate to Percona software for MySQL – an open source, production-ready, and enterprise-grade MySQL alternative.

Learn More

MariaDB Auditing Plugin
This blog explains how the MariaDB Auditing Plugin can help monitor database activity for security, accountability, and troubleshooting.

Why Audit Your Databases?

Auditing is essential for monitoring your database environment. It provides accountability for actions taken and data accessed, and helps deter inappropriate behavior.

Auditing also allows you to investigate suspicious activity. For example, if a user is deleting data, administrators can track connections and deletion events. You can also detect unauthorized access or privilege escalation.

Auditing Plugins Available for MySQL

MySQL 5.5.3+ provides an Audit Plugin API that allows plugins to capture events such as:

  • General log messages (LOG)
  • Error log messages (ERROR)
  • Query results sent to clients (RESULT)
  • Logins and disconnects (CONNECT)

Available plugins include:

Note: Versions below 1.2 of the MariaDB plugin can be unstable and may log plaintext passwords.

About the MariaDB Auditing Plugin

The MariaDB Auditing Plugin works with MariaDB, Percona Server, and MySQL. It integrates with the MySQL audit API and is suitable when enterprise plugins are unavailable.

Get the Plugin

Download from: https://mariadb.com/products/connectors-plugins

Check plugin directory:

Packaging is recommended for automation and upgrades.

Packaging

Install

Configuration

Log Destination

Choose one logging method:

Verify Installation

Check Logs

Rsyslog Configuration

Conclusion

The MariaDB Auditing Plugin is easy to deploy and integrates well with existing logging systems.

It helps detect access control issues, enforce audit policies, and troubleshoot performance or application problems by capturing executed SQL queries.

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Far
Enough.

Said no pioneer ever.
MySQL, PostgreSQL, InnoDB, MariaDB, MongoDB and Kubernetes are trademarks for their respective owners.
© 2026 Percona All Rights Reserved