MYSQL Audit logging for QUERY_DML (INSERT,UPDATE,DELETE) only not working - still see SELECTs

0

I've followed the instructions to enable audit logging for my MySQL 5.7 instance on RDS from these instructions

I would like to only see mutating operations: e.g.: UPDATE, INSERT, DELETE queries. Based on the above instructions, I should set the SERVER_AUDIT_EVENTS parameter in the option group to QUERY_DML. I have done this, keeping all the other default settings, my option group settings looks like this:

NameValue
SERVER_AUDIT_EVENTSQUERY_DML
SERVER_AUDIT_LOGGINGON
SERVER_AUDIT_INCL_USERS-
SERVER_AUDITFORCE_PLUS_PERMANENT
SERVER_AUDIT_FILE_ROTATIONS-
SERVER_AUDIT_QUERY_LOG_LIMIT1024
SERVER_AUDIT_FILE_PATH/rdsdbdata/log/audit/
SERVER_AUDIT_FILE_ROTATE_SIZE-
SERVER_AUDIT_EXCL_USERS-

I assigned this option group to my MySQL database and restarted. I see the audit logs but I still see SELECT statements. What did I miss to enable only DML audit logging?

已提問 7 個月前檢視次數 496 次
1 個回答
0
已接受的答案

Hello.

"QUERY_DML" is an event that includes "Select".
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.Options.AuditPlugin.html

QUERY_DML: Similar to the QUERY event, but returns only data manipulation language (DML) queries (INSERT, UPDATE, and so on, and also SELECT).

profile picture
專家
已回答 7 個月前
profile pictureAWS
專家
已審閱 7 個月前
  • Thanks for the answer Riku! I think the documentation for the link I shared needs to be updated to include QUERY_DML_NO_SELECT :)

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南