Skip to content

Commit 9adb07f

Browse files
committed
update ingest data no code
1 parent 48f53d4 commit 9adb07f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/data-explorer/ingest-data-no-code.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: orspodek
66
ms.reviewer: kerend
77
ms.service: data-explorer
88
ms.topic: tutorial
9-
ms.date: 11/17/2019
9+
ms.date: 01/29/2020
1010

1111
# Customer intent: I want to ingest monitoring data to Azure Data Explorer without one line of code, so that I can explore and analyze my data by using queries.
1212
---
@@ -327,7 +327,7 @@ To map the activity log data to the table, use the following query:
327327
2. Add the [update policy](/azure/kusto/concepts/updatepolicy) to the target table. This policy will automatically run the query on any newly ingested data in the *DiagnosticRawRecords* intermediate data table and ingest its results into the *DiagnosticMetrics* table:
328328
329329
```kusto
330-
.alter table DiagnosticMetrics policy update @'[{"Source": "DiagnosticRawRecords", "Query": "DiagnosticMetricsExpand()", "IsEnabled": "True"}]'
330+
.alter table DiagnosticMetrics policy update @'[{"Source": "DiagnosticRawRecords", "Query": "DiagnosticMetricsExpand()", "IsEnabled": "True", "IsTransactional": true}]'
331331
```
332332
333333
# [Diagnostic logs](#tab/diagnostic-logs)
@@ -341,7 +341,7 @@ To map the activity log data to the table, use the following query:
341341
| mv-expand events = Records
342342
| where isnotempty(events.operationName)
343343
| project
344-
Timestamp = todatetime(events.time),
344+
Timestamp = todatetime(events['time']),
345345
ResourceId = tostring(events.resourceId),
346346
OperationName = tostring(events.operationName),
347347
Result = tostring(events.resultType),
@@ -360,7 +360,7 @@ To map the activity log data to the table, use the following query:
360360
2. Add the [update policy](/azure/kusto/concepts/updatepolicy) to the target table. This policy will automatically run the query on any newly ingested data in the *DiagnosticRawRecords* intermediate data table and ingest its results into the *DiagnosticLogs* table:
361361
362362
```kusto
363-
.alter table DiagnosticLogs policy update @'[{"Source": "DiagnosticRawRecords", "Query": "DiagnosticLogsExpand()", "IsEnabled": "True"}]'
363+
.alter table DiagnosticLogs policy update @'[{"Source": "DiagnosticRawRecords", "Query": "DiagnosticLogsExpand()", "IsEnabled": "True", "IsTransactional": true}]'
364364
```
365365
366366
# [Activity logs](#tab/activity-logs)
@@ -373,7 +373,7 @@ To map the activity log data to the table, use the following query:
373373
ActivityLogsRawRecords
374374
| mv-expand events = Records
375375
| project
376-
Timestamp = todatetime(events.time),
376+
Timestamp = todatetime(events['time']),
377377
ResourceId = tostring(events.resourceId),
378378
OperationName = tostring(events.operationName),
379379
Category = tostring(events.category),
@@ -390,7 +390,7 @@ To map the activity log data to the table, use the following query:
390390
2. Add the [update policy](/azure/kusto/concepts/updatepolicy) to the target table. This policy will automatically run the query on any newly ingested data in the *ActivityLogsRawRecords* intermediate data table and ingest its results into the *ActivityLogs* table:
391391
392392
```kusto
393-
.alter table ActivityLogs policy update @'[{"Source": "ActivityLogsRawRecords", "Query": "ActivityLogRecordsExpand()", "IsEnabled": "True"}]'
393+
.alter table ActivityLogs policy update @'[{"Source": "ActivityLogsRawRecords", "Query": "ActivityLogRecordsExpand()", "IsEnabled": "True", "IsTransactional": true}]'
394394
```
395395
---
396396

0 commit comments

Comments
 (0)