This section describes the configuration for server.
For information on the configured loggers, see Section 29.12.21.1, “The setup_loggers Table”.
The following are the server telemetry logging system variables:
-
System Variable telemetry.log_enabledScope Global Dynamic Yes SET_VARHint AppliesNo Type Boolean Default Value ONControls whether telemetry logs are exported or not.
telemetry.otel_exporter_otlp_logs_protocolSystem Variable telemetry.otel_exporter_otlp_logs_protocolScope Global Dynamic No SET_VARHint AppliesNo Type Enumeration Default Value http/protobufValid Values http/protobufhttp/jsonOTLP transport protocol
telemetry.otel_exporter_otlp_logs_endpointSystem Variable telemetry.otel_exporter_otlp_logs_endpointScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value http://localhost:4318/v1/logsTarget URL to which the exporter sends logs.
telemetry.otel_exporter_otlp_logs_certificatesSystem Variable telemetry.otel_exporter_otlp_logs_certificatesScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value The trusted certificate to use when verifying a server's TLS credentials.
telemetry.otel_exporter_otlp_logs_client_keySystem Variable telemetry.otel_exporter_otlp_logs_client_keyScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value Client's private key in PEM format.
telemetry.otel_exporter_otlp_logs_client_certificatesSystem Variable telemetry.otel_exporter_otlp_logs_client_certificatesScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value Client certificate/chain trust for client's private key in PEM format.
telemetry.otel_exporter_otlp_logs_headersSystem Variable telemetry.otel_exporter_otlp_logs_headersScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value A list of headers to apply to all outgoing logs
telemetry.otel_exporter_otlp_logs_compressionSystem Variable telemetry.otel_exporter_otlp_logs_compressionScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value none (no compression)Valid Values none (no compression)gzipCompression used by log exporter.
telemetry.otel_exporter_otlp_logs_timeoutSystem Variable telemetry.otel_exporter_otlp_logs_timeoutScope Global Dynamic No SET_VARHint AppliesNo Type Integer Default Value 10000Unit milliseconds Time in milliseconds the OTLP exporter waits for each batch export.
telemetry.otel_blrp_schedule_delaySystem Variable telemetry.otel_blrp_schedule_delayScope Global Dynamic No SET_VARHint AppliesNo Type Integer Default Value 5000Unit milliseconds Delay interval between two consecutive exports in milliseconds.
telemetry.otel_blrp_max_queue_sizeSystem Variable telemetry.otel_blrp_max_queue_sizeScope Global Dynamic No SET_VARHint AppliesNo Type Integer Default Value 2048Maximum queue size.
telemetry.otel_blrp_max_export_batch_sizeSystem Variable telemetry.otel_blrp_max_export_batch_sizeScope Global Dynamic No SET_VARHint AppliesNo Type Integer Default Value 512Maximum batch size.
telemetry.otel_exporter_otlp_logs_min_tlsSystem Variable telemetry.otel_exporter_otlp_logs_min_tlsScope Global Dynamic No SET_VARHint AppliesNo Type Enumeration Default Value [none]Valid Values [none]1.21.3The minimum accepted TLS version. If left empty, TLS 1.2 is used.
telemetry.otel_exporter_otlp_logs_max_tlsSystem Variable telemetry.otel_exporter_otlp_logs_max_tlsScope Global Dynamic No SET_VARHint AppliesNo Type Enumeration Default Value [none]Valid Values [none]1.21.3The maximum accepted TLS version. If left empty, there is no maximum TLS version.
telemetry.otel_exporter_otlp_logs_cipherSystem Variable telemetry.otel_exporter_otlp_logs_cipherScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value [list of ciphers]Current list of TLS 1.2 ciphers to use for logs. The current default is:
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384: ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305: ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-CCM:ECDHE-ECDSA-AES128-CCM: DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-CCM: DHE-RSA-AES128-CCM:DHE-RSA-CHACHA20-POLY1305telemetry.otel_exporter_otlp_logs_cipher_suiteSystem Variable telemetry.otel_exporter_otlp_logs_cipher_suiteScope Global Dynamic No SET_VARHint AppliesNo Type String Default Value [none]Current list of TLS 1.3 ciphers to use for logs. The current default is:
TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_CCM_SHA256
This section describes the logger-related status variables.
Telemetry_logs_supported: displays whether the server was compiled with Telemetry logging support.Performance_schema_logger_lost: Displays the number of logger instruments which failed to be created.
This section describes the logger-related command line configuration options.
performance-schema-logger: defines the default values for loggers. This can be defined multiple times, similarly to--performance-schema-instrument.In the following example, all loggers are configured with the error level
ERROR, exceptfooandbarwhich are configured to error levelINFOandWARNING, respectively:--performance-schema-logger = 'logger/% = Level:ERROR' --performance-schema-logger = 'logger/foo/% = Level:INFO' --performance-schema-logger = 'logger/bar/% = Level:WARNING'To see the configured loggers, run the following:
select * from performance_schema.setup_loggers; +------------------------+-------+--------------------+ | NAME | LEVEL | DESCRIPTION | +------------------------+-------+--------------------+ | logger/error/error_log | info | MySQL error logger | +------------------------+-------+--------------------+This example shows the default MySQL error logger. This can be set to one of the following values:
noneerrorwarninfodebug
The following example changes the error logging level to WARNING:
mysql> UPDATE performance_schema.setup_loggers SET LEVEL='WARN'performance_schema_max_logger_classes: this system variable can also be set from the command line. For example:--performance_schema_max_logger_classes=100Editing this value requires a server restart.