Field error in audit plugin

Bug #1379023 reported by Olaf van Zandwijk on 2014-10-08
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

audit_log_connection_record shows the mismatch, in both 5.5 and 5.6

Sergei, can you take a look?

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  Edit
Everyone can see this information.

Other bug subscribers