> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/server-management/server-monitoring-logs/slow-query-log.md).

# Slow Query Log

{% columns %}
{% column %}
{% content-ref url="/pages/YFhhzjXP025Fl3MPCQXa" %}
[Slow Query Log Overview](/docs/server/server-management/server-monitoring-logs/slow-query-log/slow-query-log-overview.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Complete Slow Query Log Overview guide for MariaDB. Complete reference documentation for implementation, configuration, and usage for production use.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/9mjLD5ZObnwG4ZddEh3e" %}
[EXPLAIN in the Slow Query Log](/docs/server/server-management/server-monitoring-logs/slow-query-log/explain-in-the-slow-query-log.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Describes how to configure MariaDB to automatically write the `EXPLAIN` plan for slow queries to the log using the `log_slow_verbosity` system variable.
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}
{% content-ref url="/pages/f8iFxGN2WrMgwUdnl2cp" %}
[log\_slow\_always\_query\_time System Variable](/docs/server/server-management/server-monitoring-logs/slow-query-log/log_slow_always_query_time-system-variable.md)
{% endcontent-ref %}
{% endcolumn %}

{% column %}
Documentation for the `log_slow_always_query_time` variable, which forces queries executed by a specific function or user to be logged regardless of their execution time.
{% endcolumn %}
{% endcolumns %}
