[MCOL-377] columnstore queries show as vtable query rather than original query in audit log Created: 2016-10-26 Updated: 2017-05-05 Resolved: 2017-05-05 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MariaDB Server |
| Affects Version/s: | 1.0.4 |
| Fix Version/s: | 1.1.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Thompson (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2017-2, 2017-3, 2017-4, 2017-5, 2017-6, 2017-7, 2017-8, 2017-9 |
| Description |
|
If you enable and turn on the mariadb audit plugin for the columnstore mariadb server(https://mariadb.com/kb/en/mariadb/about-the-mariadb-audit-plugin/), any columnstore queries will show up in mysql/db/server_audit.log as something like: rather than the original query such as select * from loanstats limit 10. The audit plugin should log the users original query rather than the final vtable query. In addition the syslog_info should be populated with the columnstore system name. |
| Comments |
| Comment by Dipti Joshi (Inactive) [ 2016-10-27 ] |
|
dthompson ColumnStore has a Query Statistics feature which logs every query in querystats table see https://mariadb.com/kb/en/mariadb/analyzing-queries-in-columnstore/#query-statistics-history for information. |
| Comment by David Hill (Inactive) [ 2017-04-06 ] |
|
Please add info on what QA needs to look for to test this and how to test it |
| Comment by Ben Thompson (Inactive) [ 2017-04-07 ] |
|
See mariadb KB article for how to enable audit plugin. Run queries for columnstore tables and verify the file mysql/db/server_audit.log contains the original query and not the vtable as shown in the issue description. Run a fresh install and verify the system name that is entered into postConfigure is also written to my.cnf under mysqld section as "server_audit_syslog_info". |
| Comment by Daniel Lee (Inactive) [ 2017-05-05 ] |
|
Build tested: Github source ommit 349cae544b6bc71910267a3b3b0fa3fb57b0a587 Merge pull request #50 from mariadb-corporation/10.2-fixes 10.2 fixes [root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/ Merge pull request #168 from mariadb-corporation/ Reproduced the issue in 1.0.8-1: May 5 14:48:22 localhost mysql-server_auditing: localhost.localdomain,root,localhost,5,19,QUERY,,'set global server_audit_output_type=syslog',0 Verified the fix in 1.1.0-1 |