{"id":14969068,"url":"https://github.com/aws/audit-plugin-for-mysql","last_synced_at":"2025-09-10T14:08:32.668Z","repository":{"id":44445151,"uuid":"491703714","full_name":"aws/audit-plugin-for-mysql","owner":"aws","description":"Audit Plugin for MySQL Server","archived":false,"fork":false,"pushed_at":"2025-01-23T17:44:22.000Z","size":761005,"stargazers_count":56,"open_issues_count":2,"forks_count":29,"subscribers_count":6,"default_branch":"mysql-8.0","last_synced_at":"2025-03-29T04:08:23.478Z","etag":null,"topics":["audit-logs","database","mariadb","mariadb-server","mysql","mysql-server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-13T00:09:16.000Z","updated_at":"2025-02-27T09:21:40.000Z","dependencies_parsed_at":"2024-09-23T04:01:22.997Z","dependency_job_id":"aab5b84d-2b1c-4b98-a889-0eaf7cee9c70","html_url":"https://github.com/aws/audit-plugin-for-mysql","commit_stats":{"total_commits":123827,"total_committers":1493,"mean_commits":82.93837910247824,"dds":0.7487139315335105,"last_synced_commit":"4d3c287ac2c78ea5c37fcb34a572dca37bc0b43c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faudit-plugin-for-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faudit-plugin-for-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faudit-plugin-for-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws%2Faudit-plugin-for-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws","download_url":"https://codeload.github.com/aws/audit-plugin-for-mysql/tar.gz/refs/heads/mysql-8.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289428,"owners_count":20914464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit-logs","database","mariadb","mariadb-server","mysql","mysql-server"],"created_at":"2024-09-24T13:41:05.073Z","updated_at":"2025-04-05T05:06:56.099Z","avatar_url":"https://github.com/aws.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Audit Plugin for MySQL Server\n\nThe Audit Plugin for MySQL Server is used by [Amazon RDS for\nMySQL](https://aws.amazon.com/rds/mysql/) to enable logging of server activity,\ntypically for security and compliance purposes.\n\nThe plugin source code is published openly on Github as a service to the\ncommunity of MySQL and MariaDB users. Amazon Web Services does not offer any\nwarranties or support for the plugin. The intended audience is software\ndevelopers with C++ skills who are able to independently compile and use the\nplugin.\n\nThis plugin is not official and not associated with\n[MySQL](https://www.mysql.com/). MySQL is a registered trademark of\n[Oracle](https://www.oracle.com/legal/trademarks.html) and/or its affiliates.\n\n## Based on the MariaDB Audit Plugin\n\nThis plugin is based on the [MariaDB Audit\nPlugin](https://github.com/MariaDB/server/tree/10.8/plugin/server_audit).\n\nIn MySQL 5.6, the plugin API was compatible with the MariaDB Audit Plugin.\nIn MySQL 5.7 and 8.0, the plugin APIs have however diverged significantly.\nSo, Amazon RDS for MariaDB created a [modified version that is compatible\nwith MySQL 5.7 and 8.0](https://aws.amazon.com/about-aws/whats-new/2021/06/amazon-rds-supports-mariadb-audit-plugin-for-mysql-version-8-0/).\n\nThis version maintains the functionality of the original audit plugin where\npossible, but adapts the plugin to use the MySQL 8.0 plugin API.\n\nTo view the MySQL 5.7 compatible version, see the branch `mysql-5.7` in this\nrepository.\n\n## Compatibility\n\nThis plugin has been tested and verified on *Amazon Linux OS*\nhttps://aws.amazon.com/amazon-linux-2. It has not been tested on other operating\nsystems and does not support Windows OS.\n\n## Compilation\n\nCopy the plugin source code on top of the sources of MySQL using the following\ncommand so it compiles as part of the MySQL build:\n\n```\nrsync -av plugin/ \u003cmysqlSourceFolder\u003e/plugin/\n```\n\nmysql-test is optional unless you want to run MTR tests:\n```\nrsync -av mysql-test/ \u003cmysqlSourceFolder\u003e/mysql-test/\n```\n\n## Installation\n\n1. Place the file `server_audit.so` in the plugin directory. You can run `SHOW VARIABLES LIKE 'plugin_dir';` to find the correct path.\n2. Activate the plugin by adding `plugin_load_add = server_audit` to `my.cnf` or by running `INSTALL PLUGIN server_audit SONAME ‘server_audit.so’;` once.\n\n## Usage\n\nFor details on usage, refer to the MariaDB Server documentation:\n\n* [system variables](https://mariadb.com/kb/en/mariadb-audit-plugin-options-and-system-variables/)\n* [status variables](https://mariadb.com/kb/en/mariadb-audit-plugin-status-variables/)\n* [logging settings](https://mariadb.com/kb/en/mariadb-audit-plugin-log-settings/)\n\n## Contributing\n\nThere are no plans to add any major features to this plugin. If you have modifications to improve the auditing in MySQL/MariaDB, [we recommend contributing to the MariaDB Server project](https://mariadb.org/contribute/), where the whole server and the original audit plugin is developed in a large and active open source community.\n\nThis Audit Plugin for MySQL does accept contributions, but the goal of the project is mainly to be stable and bug free. Notes for developers can be found in [DEVELOP.md](DEVELOP.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws%2Faudit-plugin-for-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws%2Faudit-plugin-for-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws%2Faudit-plugin-for-mysql/lists"}