# Audit Plugin Overview

MariaDB and MySQL are used in a broad range of environments, but if you needed to record user access to be in compliance with auditing regulations for your organization, you would previously have had to use other database solutions. To meet this need, though, MariaDB has developed the MariaDB Audit Plugin. Although the MariaDB Audit Plugin has some unique features available only for MariaDB, it can be used also with MySQL.

Basically, the purpose of the MariaDB Audit Plugin is to log the server's activity. For each client session, it records who connected to the server (i.e., user name and host), what queries were executed, and which tables were accessed and server variables that were changed. This information is stored in a rotating log file or it may be sent to the local `syslogd`.

Review these pages for detailed documentation:

* [Installation](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-installation.md)
* [Configuration](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-configuration.md)
* [Log Settings](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-log-settings.md)
* [Log Location & Rotation](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-location-and-rotation-of-logs.md)
* [Log Format](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-log-format.md)
* [Status Variables](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-status-variables.md)
* [System Variables](/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-options-and-system-variables.md)

## Tutorials

* [Activating MariaDB Audit Log](https://tunnelix.com/activating-mariadb-audit-log/)\
  by Jaykishan Mutkawoa, May 30, 2016
* [Installing MariaDB Audit Plugin on Amazon RDS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.Options.AuditPlugin.html)\
  Amazon RDS supports using the MariaDB Audit Plugin on MySQL and MariaDB database instances.

## Blog Posts

* [MySQL Auditing with MariaDB Auditing Plugin](https://planet.mysql.com/entry/?id=5994184)\
  by Peter Zaitsev, February 15, 2016


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/reference/plugins/mariadb-audit-plugin/mariadb-audit-plugin-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
