Skip to content

Commit 225526d

Browse files
committed
fix schemas
1 parent 2ab330f commit 225526d

File tree

2 files changed

+55
-50
lines changed

2 files changed

+55
-50
lines changed

articles/mariadb/concepts-audit-logs.md

Lines changed: 27 additions & 25 deletions
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: 06/24/2019
8+
ms.date: 06/26/2019
99
---
1010

1111
# Audit Logs in Azure Database for MariaDB
@@ -49,7 +49,7 @@ The following sections describe what's output by MariaDB audit logs based on the
4949
|---|---|
5050
| `TenantId` | Your tenant ID |
5151
| `SourceSystem` | `Azure` |
52-
| `TimeGenerated` [UTC] | Time stamp when the log was recorded in UTC |
52+
| `TimeGenerated [UTC]` | Time stamp when the log was recorded in UTC |
5353
| `Type` | Type of the log. Always `AzureDiagnostics` |
5454
| `SubscriptionId` | GUID for the subscription that the server belongs to |
5555
| `ResourceGroup` | Name of the resource group the server belongs to |
@@ -59,13 +59,13 @@ The following sections describe what's output by MariaDB audit logs based on the
5959
| `Resource` | Name of the server |
6060
| `Category` | `MySqlAuditLogs` |
6161
| `OperationName` | `LogEvent` |
62-
| `event_class` | `connection_log` |
63-
| `event_subclass` | `CONNECT`, `DISCONNECT` |
64-
| `connection_id` | Unique connection ID generated by MariaDB |
65-
| `host` | Blank |
66-
| `ip` | IP address of client connecting to MariaDB |
67-
| `user` | Name of user executing the query |
68-
| `db` | Name of database connected to |
62+
| `event_class_s` | `connection_log` |
63+
| `event_subclass_s` | `CONNECT`, `DISCONNECT` |
64+
| `connection_id_d` | Unique connection ID generated by MariaDB |
65+
| `host_s` | Blank |
66+
| `ip_s` | IP address of client connecting to MariaDB |
67+
| `user_s` | Name of user executing the query |
68+
| `db_s` | Name of database connected to |
6969
| `\_ResourceId` | Resource URI |
7070

7171
### General
@@ -76,7 +76,7 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
7676
|---|---|
7777
| `TenantId` | Your tenant ID |
7878
| `SourceSystem` | `Azure` |
79-
| `TimeGenerated` [UTC] | Time stamp when the log was recorded in UTC |
79+
| `TimeGenerated [UTC]` | Time stamp when the log was recorded in UTC |
8080
| `Type` | Type of the log. Always `AzureDiagnostics` |
8181
| `SubscriptionId` | GUID for the subscription that the server belongs to |
8282
| `ResourceGroup` | Name of the resource group the server belongs to |
@@ -86,15 +86,16 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
8686
| `Resource` | Name of the server |
8787
| `Category` | `MySqlAuditLogs` |
8888
| `OperationName` | `LogEvent` |
89-
| `event_class` | `general_log` |
90-
| `event_subclass` | `LOG`, `ERROR`, `RESULT` |
89+
| `LogicalServerName_s` | Name of the server |
90+
| `event_class_s` | `general_log` |
91+
| `event_subclass_s` | `LOG`, `ERROR`, `RESULT` |
9192
| `event_time` | Query start seconds in UNIX timestamp |
92-
| `error_code` | Error code if query failed. `0` means no error |
93-
| `thread_id` | ID of thread that executed the query |
94-
| `host` | Blank |
95-
| `ip` | IP address of client connecting to MariaDB |
96-
| `user` | Name of user executing the query |
97-
| `sql_text` | Full query text |
93+
| `error_code_d` | Error code if query failed. `0` means no error |
94+
| `thread_id_d` | ID of thread that executed the query |
95+
| `host_s` | Blank |
96+
| `ip_s` | IP address of client connecting to MariaDB |
97+
| `user_s` | Name of user executing the query |
98+
| `sql_text_s` | Full query text |
9899
| `\_ResourceId` | Resource URI |
99100

100101
### Table access
@@ -103,7 +104,7 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
103104
|---|---|
104105
| `TenantId` | Your tenant ID |
105106
| `SourceSystem` | `Azure` |
106-
| `TimeGenerated` [UTC] | Time stamp when the log was recorded in UTC |
107+
| `TimeGenerated [UTC]` | Time stamp when the log was recorded in UTC |
107108
| `Type` | Type of the log. Always `AzureDiagnostics` |
108109
| `SubscriptionId` | GUID for the subscription that the server belongs to |
109110
| `ResourceGroup` | Name of the resource group the server belongs to |
@@ -113,12 +114,13 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
113114
| `Resource` | Name of the server |
114115
| `Category` | `MySqlAuditLogs` |
115116
| `OperationName` | `LogEvent` |
116-
| `event_class` | `table_access_log` |
117-
| `event_subclass` | `READ`, `INSERT`, `UPDATE`, or `DELETE` |
118-
| `connection_id` | Unique connection ID generated by MariaDB |
119-
| `db` | Name of database accessed |
120-
| `table` | Name of table accessed |
121-
| `sql_text` | Full query text |
117+
| `LogicalServerName_s` | Name of the server |
118+
| `event_class_s` | `table_access_log` |
119+
| `event_subclass_s` | `READ`, `INSERT`, `UPDATE`, or `DELETE` |
120+
| `connection_id_d` | Unique connection ID generated by MariaDB |
121+
| `db_s` | Name of database accessed |
122+
| `table_s` | Name of table accessed |
123+
| `sql_text_s` | Full query text |
122124
| `\_ResourceId` | Resource URI |
123125

124126
## Next steps

articles/mysql/concepts-audit-logs.md

Lines changed: 28 additions & 25 deletions
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: 06/11/2019
8+
ms.date: 06/26/2019
99
---
1010

1111
# Audit Logs in Azure Database for MySQL
@@ -50,7 +50,7 @@ The following sections describe what's output by MySQL audit logs based on the e
5050
|---|---|
5151
| `TenantId` | Your tenant ID |
5252
| `SourceSystem` | `Azure` |
53-
| `TimeGenerated` [UTC] | Time stamp when the log was recorded in UTC |
53+
| `TimeGenerated [UTC]` | Time stamp when the log was recorded in UTC |
5454
| `Type` | Type of the log. Always `AzureDiagnostics` |
5555
| `SubscriptionId` | GUID for the subscription that the server belongs to |
5656
| `ResourceGroup` | Name of the resource group the server belongs to |
@@ -60,13 +60,14 @@ The following sections describe what's output by MySQL audit logs based on the e
6060
| `Resource` | Name of the server |
6161
| `Category` | `MySqlAuditLogs` |
6262
| `OperationName` | `LogEvent` |
63-
| `event_class` | `connection_log` |
64-
| `event_subclass` | `CONNECT`, `DISCONNECT`, `CHANGE USER` (only available for MySQL 5.7) |
65-
| `connection_id` | Unique connection ID generated by MySQL |
66-
| `host` | Blank |
67-
| `ip` | IP address of client connecting to MySQL |
68-
| `user` | Name of user executing the query |
69-
| `db` | Name of database connected to |
63+
| `LogicalServerName_s` | Name of the server |
64+
| `event_class_s` | `connection_log` |
65+
| `event_subclass_s` | `CONNECT`, `DISCONNECT`, `CHANGE USER` (only available for MySQL 5.7) |
66+
| `connection_id_d` | Unique connection ID generated by MySQL |
67+
| `host_s` | Blank |
68+
| `ip_s` | IP address of client connecting to MySQL |
69+
| `user_s` | Name of user executing the query |
70+
| `db_s` | Name of database connected to |
7071
| `\_ResourceId` | Resource URI |
7172

7273
### General
@@ -77,7 +78,7 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
7778
|---|---|
7879
| `TenantId` | Your tenant ID |
7980
| `SourceSystem` | `Azure` |
80-
| `TimeGenerated` [UTC] | Time stamp when the log was recorded in UTC |
81+
| `TimeGenerated [UTC]` | Time stamp when the log was recorded in UTC |
8182
| `Type` | Type of the log. Always `AzureDiagnostics` |
8283
| `SubscriptionId` | GUID for the subscription that the server belongs to |
8384
| `ResourceGroup` | Name of the resource group the server belongs to |
@@ -87,15 +88,16 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
8788
| `Resource` | Name of the server |
8889
| `Category` | `MySqlAuditLogs` |
8990
| `OperationName` | `LogEvent` |
90-
| `event_class` | `general_log` |
91-
| `event_subclass` | `LOG`, `ERROR`, `RESULT` (only available for MySQL 5.6) |
91+
| `LogicalServerName_s` | Name of the server |
92+
| `event_class_s` | `general_log` |
93+
| `event_subclass_s` | `LOG`, `ERROR`, `RESULT` (only available for MySQL 5.6) |
9294
| `event_time` | Query start seconds in UNIX timestamp |
93-
| `error_code` | Error code if query failed. `0` means no error |
94-
| `thread_id` | ID of thread that executed the query |
95-
| `host` | Blank |
96-
| `ip` | IP address of client connecting to MySQL |
97-
| `user` | Name of user executing the query |
98-
| `sql_text` | Full query text |
95+
| `error_code_d` | Error code if query failed. `0` means no error |
96+
| `thread_id_d` | ID of thread that executed the query |
97+
| `host_s` | Blank |
98+
| `ip_s` | IP address of client connecting to MySQL |
99+
| `user_s` | Name of user executing the query |
100+
| `sql_text_s` | Full query text |
99101
| `\_ResourceId` | Resource URI |
100102

101103
### Table access
@@ -104,7 +106,7 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
104106
|---|---|
105107
| `TenantId` | Your tenant ID |
106108
| `SourceSystem` | `Azure` |
107-
| `TimeGenerated` [UTC] | Time stamp when the log was recorded in UTC |
109+
| `TimeGenerated [UTC]` | Time stamp when the log was recorded in UTC |
108110
| `Type` | Type of the log. Always `AzureDiagnostics` |
109111
| `SubscriptionId` | GUID for the subscription that the server belongs to |
110112
| `ResourceGroup` | Name of the resource group the server belongs to |
@@ -114,12 +116,13 @@ Schema below applies to GENERAL, DML_SELECT, DML_NONSELECT, DML, DDL, DCL, and A
114116
| `Resource` | Name of the server |
115117
| `Category` | `MySqlAuditLogs` |
116118
| `OperationName` | `LogEvent` |
117-
| `event_class` | `table_access_log` |
118-
| `event_subclass` | `READ`, `INSERT`, `UPDATE`, or `DELETE` |
119-
| `connection_id` | Unique connection ID generated by MySQL |
120-
| `db` | Name of database accessed |
121-
| `table` | Name of table accessed |
122-
| `sql_text` | Full query text |
119+
| `LogicalServerName_s` | Name of the server |
120+
| `event_class_s` | `table_access_log` |
121+
| `event_subclass_s` | `READ`, `INSERT`, `UPDATE`, or `DELETE` |
122+
| `connection_id_d` | Unique connection ID generated by MySQL |
123+
| `db_s` | Name of database accessed |
124+
| `table_s` | Name of table accessed |
125+
| `sql_text_s` | Full query text |
123126
| `\_ResourceId` | Resource URI |
124127

125128
## Next steps

0 commit comments

Comments
 (0)