How to read the MySQL Audit.log file in a SQL table? I tried to read the Audit.log file of the MySQL Enterprise using a table or other more friendly format and easy to access and understand, but the xml format with which it is written has an irregular structure:

&lt;AUDIT_RECORD&gt;
   &lt;TIMESTAMP&gt;2019-02-17T12:53:23 UTC&lt;/TIMESTAMP&gt;
   &lt;RECORD_ID&gt;1_2019-02-17T12:53:23&lt;/RECORD_ID&gt;
   &lt;NAME&gt;Audit&lt;/NAME&gt;
   &lt;SERVER_ID&gt;1&lt;/SERVER_ID&gt;
   &lt;VERSION&gt;1&lt;/VERSION&gt;
   &lt;STARTUP_OPTIONS&gt;./mysqld --basedir=/MYSQL_HOME/mysql&lt;/STARTUP_OPTIONS&gt;
   &lt;OS_VERSION&gt;x86_64-linux-glibc2.12&lt;/OS_VERSION&gt;
   &lt;MYSQL_VERSION&gt;5.6.38-enterprise-commercial-advanced-log&lt;/MYSQL_VERSION&gt;
&lt;/AUDIT_RECORD&gt;

&lt;AUDIT_RECORD&gt;
   &lt;TIMESTAMP&gt;2019-02-19T02:22:23 UTC&lt;/TIMESTAMP&gt;
   &lt;RECORD_ID&gt;2_2019-02-17T12:53:23&lt;/RECORD_ID&gt;
   &lt;NAME&gt;Connect&lt;/NAME&gt;
   &lt;CONNECTION_ID&gt;460432&lt;/CONNECTION_ID&gt;
   &lt;STATUS&gt;0&lt;/STATUS&gt;
   &lt;STATUS_CODE&gt;0&lt;/STATUS_CODE&gt;
   &lt;USER&gt;nbryan&lt;/USER&gt;
   &lt;OS_LOGIN/&gt;
   &lt;HOST/&gt;
   &lt;IP&gt;172.17.3.150&lt;/IP&gt;
   &lt;COMMAND_CLASS&gt;connect&lt;/COMMAND_CLASS&gt;
   &lt;PRIV_USER&gt;nbryan&lt;/PRIV_USER&gt;
   &lt;PROXY_USER/&gt;
   &lt;DB/&gt;
&lt;/AUDIT_RECORD&gt;

&lt;AUDIT_RECORD&gt;
   &lt;TIMESTAMP&gt;2019-02-19T02:22:23 UTC&lt;/TIMESTAMP&gt;
   &lt;RECORD_ID&gt;3_2019-02-17T12:53:23&lt;/RECORD_ID&gt;
   &lt;NAME&gt;Query&lt;/NAME&gt;
   &lt;CONNECTION_ID&gt;460432&lt;/CONNECTION_ID&gt;
   &lt;STATUS&gt;0&lt;/STATUS&gt;
   &lt;STATUS_CODE&gt;0&lt;/STATUS_CODE&gt;
   &lt;USER&gt;flopez[nbryan] @  [172.17.3.150]&lt;/USER&gt;
   &lt;OS_LOGIN/&gt;
   &lt;HOST/&gt;
   &lt;IP&gt;172.17.3.150&lt;/IP&gt;
   &lt;COMMAND_CLASS&gt;set_option&lt;/COMMAND_CLASS&gt;
   &lt;SQLTEXT&gt;/*!40101 set @@session.wait_timeout=28800 */&lt;/SQLTEXT&gt;
&lt;/AUDIT_RECORD&gt;


As you can see, the same tags are not always generated, so I have not been able to format it to a table from the SQL Server (there is a lot of information on how to read xml formats using sql). I wanted to know if there is another way, maybe from the same MySQL, although it is very difficult to find something of this manager in relation to other solutions.

Any help or idea would be very helpful.

Thank you.
In this page you find information about Audit.log:

https://mysqlserverteam.com/audit-logs-json-format-logging/

Audit Log File Reading
Audit Log can store log files as the XML or JSON format, depending on the specified output format. When the JSON logging is enabled, we can read events using the provided audit_log_read() UDF. 

  { 
  "timestamp": "2018-05-24 23:15:07",
  "id": 0,
  "class": "connection",
  "event": "connect",
  "connection_id": 12,
  "account": { "user": "user",
               "host": "localhost" },
  "login": { "user": "user",
             "os": "",
             "ip": "::1",
             "proxy": "" },
  "connection_data": { "connection_type": "tcp/ip",
                       "status": 0,
                       "db": "bank_db" } }