You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/mariadb/howto-configure-audit-logs-cli.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,24 +31,24 @@ To step through this how-to guide, you need:
31
31
Enable and configure audit logging using the following steps:
32
32
33
33
1. Turn on audit logs by setting the **audit_logs_enabled** parameter to "ON".
34
-
```azurecli-interactive
35
-
az mariadb server configuration set --name audit_log_enabled --resource-group myresourcegroup --server mydemoserver --value ON
36
-
```
34
+
```azurecli-interactive
35
+
az mariadb server configuration set --name audit_log_enabled --resource-group myresourcegroup --server mydemoserver --value ON
36
+
```
37
37
38
38
1. Select the [event types](concepts-audit-logs.md#configure-audit-logging) to be logged by updating the **audit_log_events** parameter.
39
-
```azurecli-interactive
40
-
az mariadb server configuration set --name audit_log_events --resource-group myresourcegroup --server mydemoserver --value "ADMIN,CONNECTION"
41
-
```
39
+
```azurecli-interactive
40
+
az mariadb server configuration set --name audit_log_events --resource-group myresourcegroup --server mydemoserver --value "ADMIN,CONNECTION"
41
+
```
42
42
43
43
1. Add any MariaDB users to be excluded from logging by updating the **audit_log_exclude_users** parameter. Specify users by providing their MariaDB user name.
44
-
```azurecli-interactive
45
-
az mariadb server configuration set --name audit_log_exclude_users --resource-group myresourcegroup --server mydemoserver --value "azure_superuser"
46
-
```
44
+
```azurecli-interactive
45
+
az mariadb server configuration set --name audit_log_exclude_users --resource-group myresourcegroup --server mydemoserver --value "azure_superuser"
46
+
```
47
47
48
48
1. Add any specific MariaDB users to be included for logging by updating the **audit_log_include_users** parameter. Specify users by providing their MariaDB user name.
49
-
```azurecli-interactive
50
-
az mariadb server configuration set --name audit_log_include_users --resource-group myresourcegroup --server mydemoserver --value "sampleuser"
51
-
```
49
+
```azurecli-interactive
50
+
az mariadb server configuration set --name audit_log_include_users --resource-group myresourcegroup --server mydemoserver --value "sampleuser"
Copy file name to clipboardExpand all lines: articles/mysql/howto-configure-audit-logs-cli.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,24 +31,24 @@ To step through this how-to guide, you need:
31
31
Enable and configure audit logging using the following steps:
32
32
33
33
1. Turn on audit logs by setting the **audit_logs_enabled** parameter to "ON".
34
-
```azurecli-interactive
35
-
az mysql server configuration set --name audit_log_enabled --resource-group myresourcegroup --server mydemoserver --value ON
36
-
```
34
+
```azurecli-interactive
35
+
az mysql server configuration set --name audit_log_enabled --resource-group myresourcegroup --server mydemoserver --value ON
36
+
```
37
37
38
38
1. Select the [event types](concepts-audit-logs.md#configure-audit-logging) to be logged by updating the **audit_log_events** parameter.
39
-
```azurecli-interactive
40
-
az mysql server configuration set --name audit_log_events --resource-group myresourcegroup --server mydemoserver --value "ADMIN,CONNECTION"
41
-
```
39
+
```azurecli-interactive
40
+
az mysql server configuration set --name audit_log_events --resource-group myresourcegroup --server mydemoserver --value "ADMIN,CONNECTION"
41
+
```
42
42
43
43
1. Add any MySQL users to be excluded from logging by updating the **audit_log_exclude_users** parameter. Specify users by providing their MySQL user name.
44
-
```azurecli-interactive
45
-
az mysql server configuration set --name audit_log_exclude_users --resource-group myresourcegroup --server mydemoserver --value "azure_superuser"
46
-
```
44
+
```azurecli-interactive
45
+
az mysql server configuration set --name audit_log_exclude_users --resource-group myresourcegroup --server mydemoserver --value "azure_superuser"
46
+
```
47
47
48
48
1. Add any specific MySQL users to be included for logging by updating the **audit_log_include_users** parameter. Specify users by providing their MySQL user name.
49
-
```azurecli-interactive
50
-
az mysql server configuration set --name audit_log_include_users --resource-group myresourcegroup --server mydemoserver --value "sampleuser"
51
-
```
49
+
```azurecli-interactive
50
+
az mysql server configuration set --name audit_log_include_users --resource-group myresourcegroup --server mydemoserver --value "sampleuser"
51
+
```
52
52
53
53
## Next steps
54
54
- Learn more about [audit logs](concepts-audit-logs.md) in Azure Database for MySQL
0 commit comments