Skip to content

Commit b41ca78

Browse files
committed
add log output parameter for mariadb
1 parent 873eb5f commit b41ca78

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

articles/mariadb/concepts-server-logs.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Slow query logs - Azure Database for MariaDB
33
description: Describes the logs available in Azure Database for MariaDB, and the available parameters for enabling different logging levels.
4-
author: rachel-msft
5-
ms.author: raagyema
4+
author: ajlam
5+
ms.author: andrela
66
ms.service: mariadb
77
ms.topic: conceptual
8-
ms.date: 12/02/2019
8+
ms.date: 12/09/2019
99
---
1010
# Slow query logs in Azure Database for MariaDB
1111
In Azure Database for MariaDB, the slow query log is available to users. Access to the transaction log is not supported. The slow query log can be used to identify performance bottlenecks for troubleshooting.
@@ -19,6 +19,8 @@ In the Azure portal, select your Azure Database for MariaDB server. Under the **
1919

2020
For more information on Azure CLI, see [Configure and access server logs using Azure CLI](howto-configure-server-logs-cli.md).
2121

22+
Similarly, you can pipe the logs to Azure Monitor using Diagnostic Logs. See [below](concepts-server-logs.md#diagnostic-logs) for more information.
23+
2224
## Log retention
2325
Logs are available for up to seven days from their creation. If the total size of the available logs exceeds 7 GB, then the oldest files are deleted until space is available.
2426

@@ -33,6 +35,7 @@ Other parameters you can adjust include:
3335
- **log_slow_admin_statements**: if ON includes administrative statements like ALTER_TABLE and ANALYZE_TABLE in the statements written to the slow_query_log.
3436
- **log_queries_not_using_indexes**: determines whether queries that do not use indexes are logged to the slow_query_log
3537
- **log_throttle_queries_not_using_indexes**: This parameter limits the number of non-index queries that can be written to the slow query log. This parameter takes effect when log_queries_not_using_indexes is set to ON.
38+
- **log_output**: if "File", allows the slow query log to be written to both the local server storage and to Azure Monitor Diagnostic Logs. If "None", the slow query log will only be written to the local server storage.
3639

3740
See the MariaDB [slow query log documentation](https://mariadb.com/kb/en/library/slow-query-log-overview/) for full descriptions of the slow query log parameters.
3841

0 commit comments

Comments
 (0)