Comments (6)
Hi Ankit,
Thanks for reporting this. Can you specify what distribution of MySQL
exactly are you using. Is this the official release from mysql.com?
Also, are you sure that the Quit command is being logged in other scenarios
(for example after a select or update)?
On Tue, Jan 8, 2013 at 11:47 AM, ankitthakwani [email protected]:
show variables like '%audit%';
from mysql-audit.
Hi Guy,
The MySQL Status says:
mysql> status
mysql Ver 14.14 Distrib 5.5.12, for Linux (x86_64) using readline 5.1
Connection id: 270761
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.5.12-log MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8
Db characterset: utf8
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 127 days 18 hours 55 min 21 sec
[ankit@reldb ~]$ rpm -qa | grep -i mysql
MySQL-devel-5.5.12-1.linux2.6.x86_64
MySQL-server-5.5.12-1.linux2.6.x86_64
MySQL-shared-5.5.12-1.linux2.6.x86_64
MySQL-client-5.5.12-1.linux2.6.x86_64
This was downloaded and Installed when I was not working in my current company, but I have talked to my colleagues and they confirm that it was installed from mysql.com.
Yes, the Quit command is logged in other scenarios.
Regards,
Ankit
from mysql-audit.
Can you include the json audit log file after reproducing the issue, then login again and do a "select" and see that the quit command is shown. I would like to examine the full flow in the json file once for failure to show quit and once with the quit.
thanks,
Guy
from mysql-audit.
Session Details:
[root@MySQL-Master ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.5.12-log MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select connection_id();
+-----------------+
| connection_id() |
+-----------------+
| 12 |
+-----------------+
1 row in set (0.03 sec)
mysql> show variables like '%audit%';
+---------------------------------+---------------------------------+
| Variable_name | Value |
+---------------------------------+---------------------------------+
| audit_checksum | |
| audit_delay_cmds | |
| audit_delay_ms | 0 |
| audit_json_file | ON |
| audit_json_file_flush | OFF |
| audit_json_file_sync | 0 |
| audit_json_log_file | /var/lib/mysql/audit.log |
| audit_json_socket | OFF |
| audit_json_socket_name | /var/lib/mysql/mysql-audit.sock |
| audit_offsets | |
| audit_offsets_by_version | ON |
| audit_record_cmds | |
| audit_record_objs | sakila.,mysql.,{} |
| audit_uninstall_plugin | OFF |
| audit_validate_checksum | ON |
| audit_validate_offsets_extended | ON |
| audit_whitelist_users | |
+---------------------------------+---------------------------------+
17 rows in set (0.01 sec)
mysql> exit;
Bye
[root@MySQL-Master ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.5.12-log MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select connection_id();
+-----------------+
| connection_id() |
+-----------------+
| 13 |
+-----------------+
1 row in set (0.01 sec)
mysql> exit
Bye
[root@MySQL-Master ~]#
Audit Log
{"msg-type":"activity","date":"1357727713465","thread-id":"12","query-id":"0","user":"root","priv_user":"root","host":"localhost","cmd":"Connect","query":"Connect"}
{"msg-type":"activity","date":"1357727713466","thread-id":"12","query-id":"70","user":"root","priv_user":"root","host":"localhost","cmd":"select","query":"select @@version_comment limit 1"}
{"msg-type":"activity","date":"1357727721650","thread-id":"12","query-id":"71","user":"root","priv_user":"root","host":"localhost","cmd":"select","query":"select connection_id()"}
{"msg-type":"activity","date":"1357727747264","thread-id":"13","query-id":"0","user":"root","priv_user":"root","host":"localhost","cmd":"Connect","query":"Connect"}
{"msg-type":"activity","date":"1357727747265","thread-id":"13","query-id":"74","user":"root","priv_user":"root","host":"localhost","cmd":"select","query":"select @@version_comment limit 1"}
{"msg-type":"activity","date":"1357727756320","thread-id":"13","query-id":"75","user":"root","priv_user":"root","host":"localhost","cmd":"select","query":"select connection_id()"}
{"msg-type":"activity","date":"1357727757948","thread-id":"13","query-id":"76","user":"root","priv_user":"root","host":"localhost","cmd":"Quit","query":"Quit"}
from mysql-audit.
Latest commit should resolve this issue.
from mysql-audit.
Working fine now !
from mysql-audit.
Related Issues (20)
- Compile success, but run failed
- Plugin 'AUDIT' does not support MySQL 8.0.26
- Support for MySQL v8.0.25 HOT 3
- offset-extract.sh error in ubuntu 18.04 HOT 3
- AUDIT plugin does not support MySQL 5.7.38 HOT 1
- mysql8 offset HOT 6
- Use datetime instead of timestamp
- Can't support mysql-8.0.30 HOT 2
- auto rotate logs when the specific size is reached HOT 1
- not suppor arm
- Do you have any plan support for MySQL 5.7.40 HOT 2
- throw exception in mysql server 8.0.30
- can audit_whitelist_users accept wildcard
- MySQL problem of Docker deployment HOT 1
- ERROR 1123 (HY000): Can't initialize function 'AUDIT'; Plugin initialization function failed. (env mysql 8.0.29 & rocky8.6 ) HOT 1
- MySQL 8.0.33: undefined symbol: my_charset_utf8_general_ci HOT 8
- MySQL 8.0.30: Plugin 'AUDIT' registration as a AUDIT failed. HOT 1
- ./offset-extract.sh GDB failed!!! mysql:8.0.30-debian-11-r15
- offset-extract.sh failed for MySQL >= 8.0.32 HOT 4
- [INFO] A step-by-step quick note on building mysql-audit for MySQL 8.0.33+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql-audit.