Skip to content

Commit 21ecc0f

Browse files
committed
log_output parameter for mysql, add missing audit log parameter for mariadb
1 parent 6da5d2a commit 21ecc0f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

articles/mariadb/concepts-audit-logs.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ajlam
55
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

1111
# Audit Logs in Azure Database for MariaDB
@@ -22,6 +22,9 @@ By default the audit log is disabled. To enable it, set `audit_log_enabled` to O
2222
Other parameters you can adjust include:
2323

2424
- `audit_log_events`: controls the events to be logged. See below table for specific audit events.
25+
- `audit_log_include_users`: MariaDB users to be included for logging. The default value for this parameter is empty, which will include all the users for logging. This has higher priority over `audit_log_exclude_users`. Max length of the parameter is 512 characters.
26+
> [!Note]
27+
> `audit_log_include_users` has higher priority over `audit_log_exclude_users` for example If audit_log_include_users = `demouser` and audit_log_exclude_users = `demouser`, it will audit the logs because `audit_log_include_users` has higher priority.
2528
- `audit_log_exclude_users`: MariaDB users to be excluded from logging. Allows for at most four users. Max length of the parameter is 256 characters.
2629

2730
| **Event** | **Description** |

articles/mysql/concepts-server-logs.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: ajlam
55
ms.author: andrela
66
ms.service: mysql
77
ms.topic: conceptual
8-
ms.date: 05/29/2019
8+
ms.date: 12/09/2019
99
---
1010
# Slow query logs in Azure Database for MySQL
1111
In Azure Database for MySQL, 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 MySQL server. Under the **Mo
1919

2020
For more information on Azure CLI, see [Configure and access slow query logs using Azure CLI](howto-configure-server-logs-in-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
> [!Note]
3841
> For `sql_text`, log will be truncated if it exceeds 2048 characters.

0 commit comments

Comments
 (0)