content_image/869975.jpg
• audit_log_read_bookmark() 

Returns a JSON  string representing a bookmark for the most recently written audit log event. If the audit log format is not JSON , an error occurs. 

The bookmark is a JSON  hash with timestamp  and id  items that uniquely identify the position of an event within the audit log. It is suitable for passing to audit_log_read()  to indicate to that function the position at which to begin reading. 

For additional details about the audit log-reading process, see Section 6.4.5.6, “Reading Audit Log Files” . 

Arguments: 

None. 

Return value: 

A JSON  string containing a bookmark for success, or NULL  and an error for failure. 

Example: 

mysql> SELECT audit_log_read_bookmark(); +-------------------------------------------------+ | audit_log_read_bookmark() | +-------------------------------------------------+ | { "timestamp": "2019-10-03 21:03:44", "id": 0 } | +-------------------------------------------------+ 

Notes: 

Prior to MySQL 8.0.19, string return values are binary JSON  strings. For information about converting such values to nonbinary strings, see Section 6.4.5.6, “Reading Audit Log Files” . 

## Audit Log Option and Variable Reference 

<img src='content_image/869975.jpg'>

