> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/platform/mariadb-faqs/plugins/mariadb-enterprise-audit-plugin.md).

# MariaDB Enterprise Audit Plugin

* Q: What is the MariaDB Enterprise Audit Plugin and its primary function?\
  A: The MariaDB Enterprise Audit Plugin is an advanced security feature available exclusively with MariaDB Enterprise Server. Its primary function is to provide detailed, flexible, and configurable logging of nearly all database activity. This includes tracking user connections, the specific SQL queries executed, tables and other objects accessed, and changes made to server variables, creating a comprehensive audit trail.
* Q: Why is database auditing, as provided by this plugin, important for enterprises?\
  A: Database auditing is critically important for enterprises for several reasons:
  * Security: Helps detect and investigate suspicious activities or security breaches.
  * Compliance: Enables organizations to meet regulatory requirements (GDPR, HIPAA, SOX, PCI DSS) by providing verifiable records of data access and modification.
  * Troubleshooting: Audit logs aid in diagnosing application issues or understanding unexpected database behavior.
  * Accountability: Tracks user actions within the database to establish accountability.
* Q: What are the key features and capabilities of the MariaDB Enterprise Audit Plugin?\
  A: Key features of the MariaDB Enterprise Audit Plugin include highly granular filtering capabilities (allowing administrators to audit specific users, commands, databases, or tables), configuration of audit rules using JSON-based definitions stored in system tables for dynamic control, options to log audit data to secure files or to the system's syslog daemon, and robust log rotation mechanisms. It is designed to provide comprehensive and robust auditing for demanding enterprise environments.
* Q: How does the MariaDB Enterprise Audit Plugin differ from the basic audit plugin available in MariaDB Community Server?\
  A: While a basic audit plugin is available in MariaDB Community Server (often referred to as the "MariaDB Audit Plugin" or "server\_audit"), the MariaDB Enterprise Audit Plugin offers significantly more advanced and flexible capabilities. These include more sophisticated filtering options, the ability to define audit rules dynamically via SQL using JSON, more comprehensive event logging, and features specifically designed to meet the stringent auditing and compliance needs of enterprise organizations.
* Q: Is the MariaDB Enterprise Audit Plugin a commercial feature?\
  A: Yes, the MariaDB Enterprise Audit Plugin, with its full suite of advanced functionalities and enterprise-grade capabilities, is a commercial feature and is part of the MariaDB Enterprise Server subscription provided by MariaDB plc.

{% @marketo/form formId="4316" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/platform/mariadb-faqs/plugins/mariadb-enterprise-audit-plugin.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.
