Field error in audit plugin

Bug #1379023 reported by Olaf van Zandwijk
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
High
Sergei Glushchenko
5.1
Invalid
Undecided
Unassigned
5.5
Fix Released
High
Sergei Glushchenko
5.6
Fix Released
High
Sergei Glushchenko

Bug Description

I have the percona audit plugin configured as follows:

audit_log_handler = FILE
audit_log_strategy = ASYNCHRONOUS
audit_log_file = /path/to/audit.log
audit_log_format = JSON
audit_log_policy = LOGINS
audit_log_rotate_on_size = 104857600
audit_log_rotations = 10

This results in records like this:

{
"audit_record":{
"name":"Connect",
"record":"244463_2014-10-08T18:53:42",
"timestamp":"2014-10-08T20:12:24 UTC",
"connection_id":"62537",
"status":0,
"user":"username",
"priv_user":"username",
"os_login":"",
"proxy_user":"",
"host":"",
"ip":"username",
"db":"10.x.y.z"
}
}

Note for instance the "ip" and "db" field. As it seems to me, those values are incorrect (mixup of keys and values).

Related branches

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

audit_log_connection_record shows the mismatch, in both 5.5 and 5.6

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Sergei, can you take a look?

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-824

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.