January 2018
Intermediate to advanced
446 pages
12h 57m
English
To use the JSON format for logging, you need to load the JSON log writer called log_sink_json. You can use the built-in filter, log_filter_internal, for filtering:
mysql> INSTALL COMPONENT 'file://component_log_sink_json';Query OK, 0 rows affected (0.05 sec)
mysql> SET PERSIST log_error_services = 'log_filter_internal; log_sink_json';Query OK, 0 rows affected (0.00 sec)
mysql> SHOW VARIABLES LIKE 'log_error';+---------------+---------------------------+| Variable_name | Value |+---------------+---------------------------+ ...