Send MySQL Audit Log To Syslog Directly and have audit event per line (Doc ID 2227613.1)

Last updated on JANUARY 27, 2017

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.

Goal

How to send MySQL audit log messages (5.7.16) on syslog without write messages on audit.log file and how have audit message on one line instead of one line for each value:
2017-01-03T09:34:18 UTC <RECORD_ID>391866_2017-01-03T09:34:18 Query ....

instead of :

2017-01-03T09:34:18 UTC
<RECORD_ID>391866_2017-01-03T09:34:18


This is interesting when there´s the need to parsing and indexing events using specific application for that purpose.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms