Skip to content

Commit efc195d

Browse files
authored
Merge pull request #100417 from orspod/2020-1-system-properties
toc changes & system properties
2 parents 4009eff + 1fd360a commit efc195d

File tree

4 files changed

+55
-14
lines changed

4 files changed

+55
-14
lines changed

articles/data-explorer/ingest-data-event-hub.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ title: 'Ingest data from Event Hub into Azure Data Explorer'
33
description: 'In this article, you learn how to ingest (load) data into Azure Data Explorer from Event Hub.'
44
author: orspod
55
ms.author: orspodek
6-
ms.reviewer: mblythe
6+
ms.reviewer: tzgitlin
77
ms.service: data-explorer
88
ms.topic: conceptual
9-
ms.date: 07/17/2019
9+
ms.date: 01/08/2020
1010

1111
# Customer intent: As a database administrator, I want to ingest data into Azure Data Explorer from an event hub, so I can analyze streaming data.
1212
---
@@ -106,7 +106,7 @@ Now you connect to the event hub from Azure Data Explorer. When this connection
106106
107107
![Event hub connection](media/ingest-data-event-hub/event-hub-connection.png)
108108
109-
Data Source:
109+
**Data Source:**
110110
111111
**Setting** | **Suggested value** | **Field description**
112112
|---|---|---|
@@ -117,7 +117,7 @@ Now you connect to the event hub from Azure Data Explorer. When this connection
117117
| Event system properties | Select relevant properties | The [Event Hub system properties](/azure/service-bus-messaging/service-bus-amqp-protocol-guide#message-annotations). If there are multiple records per event message, the system properties will be added to the first one. When adding system properties, [create](/azure/kusto/management/tables#create-table) or [update](/azure/kusto/management/tables#alter-table-and-alter-merge-table) table schema and [mapping](/azure/kusto/management/mappings) to include the selected properties. |
118118
| | |
119119
120-
Target table:
120+
**Target table:**
121121
122122
There are two options for routing the ingested data: *static* and *dynamic*.
123123
For this article, you use static routing, where you specify the table name, data format, and mapping. Therefore, leave **My data includes routing info** unselected.
@@ -135,6 +135,8 @@ Now you connect to the event hub from Azure Data Explorer. When this connection
135135
> * Enable GZip compression for static routing by opening a [support request in the Azure portal](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview). Enable GZip compression for dynamic routing as seen in the [sample app](https://github.com/Azure-Samples/event-hubs-dotnet-ingest).
136136
> * Avro format and event system properties aren't supported on compression payload.
137137
138+
[!INCLUDE [data-explorer-container-system-properties](../../includes/data-explorer-container-system-properties.md)]
139+
138140
## Copy the connection string
139141
140142
When you run the [sample app](https://github.com/Azure-Samples/event-hubs-dotnet-ingest) listed in Prerequisites, you need the connection string for the event hub namespace.

articles/data-explorer/ingest-data-iot-hub.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: 'Ingest data from IoT Hub into Azure Data Explorer'
33
description: 'In this article, you learn how to ingest (load) data into Azure Data Explorer from IoT Hub.'
4-
author: oflipman
5-
ms.author: oflipman
6-
ms.reviewer: orspodek
4+
author: orspod
5+
ms.author: orspodek
6+
ms.reviewer: tzgitlin
77
ms.service: data-explorer
88
ms.topic: conceptual
9-
ms.date: 08/27/2019
9+
ms.date: 01/08/2020
1010

1111
# Customer intent: As a database administrator, I want to ingest data into Azure Data Explorer from an IoT Hub, so I can analyze streaming data.
1212
---
@@ -101,6 +101,8 @@ Now you connect to the IoT Hub from Azure Data Explorer. When this connection is
101101
> * Select **My data includes routing info** to use dynamic routing, where your data includes the necessary routing information as seen in the [sample app](https://github.com/Azure-Samples/event-hubs-dotnet-ingest) comments. If both static and dynamic properties are set, the dynamic properties override the static ones.
102102
> * Only events enqueued after you create the data connection are ingested.
103103
104+
[!INCLUDE [data-explorer-container-system-properties](../../includes/data-explorer-container-system-properties.md)]
105+
104106
## Generate sample data for testing
105107
106108
The simulated device application connects to a device-specific endpoint on your IoT hub and sends simulated temperature and humidity telemetry.

articles/data-explorer/toc.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,30 @@
5454
items:
5555
- name: Azure portal
5656
href: ingest-data-event-hub.md
57-
- name: Python
58-
href: data-connection-event-hub-python.md
5957
- name: C#
6058
href: data-connection-event-hub-csharp.md
59+
- name: Python
60+
href: data-connection-event-hub-python.md
6161
- name: Azure Resource Manager template
6262
href: data-connection-event-hub-resource-manager.md
6363
- name: Event Grid
6464
items:
6565
- name: Azure portal
6666
href: ingest-data-event-grid.md
67-
- name: Python
68-
href: data-connection-event-grid-python.md
6967
- name: C#
7068
href: data-connection-event-grid-csharp.md
69+
- name: Python
70+
href: data-connection-event-grid-python.md
7171
- name: Azure Resource Manager template
7272
href: data-connection-event-grid-resource-manager.md
7373
- name: IoT Hub
7474
items:
7575
- name: Azure portal
7676
href: ingest-data-iot-hub.md
77-
- name: Python
78-
href: data-connection-iot-hub-python.md
7977
- name: C#
8078
href: data-connection-iot-hub-csharp.md
79+
- name: Python
80+
href: data-connection-iot-hub-python.md
8181
- name: Azure Resource Manager template
8282
href: data-connection-iot-hub-resource-manager.md
8383
- name: One-click ingestion
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
author: orspod
3+
ms.service: data-explorer
4+
ms.topic: include
5+
ms.date: 01/08/2020
6+
ms.author: orspodek
7+
---
8+
9+
### Event system properties mapping
10+
11+
If you selected **Event system properties** in the **Data Source** section of the table above, go to the [Web UI](https://dataexplorer.azure.com/) to run the relevant KQL command for proper mapping creation.
12+
13+
**For csv mapping:**
14+
15+
```kusto
16+
.create table MyTable ingestion csv mapping "CsvMapping1"
17+
'['
18+
' { "column" : "messageid", "DataType":"string", "Properties":{"Ordinal":"0"}},'
19+
' { "column" : "userid", "DataType":"string", "Properties":{"Ordinal":"1"}},'
20+
' { "column" : "other", "DataType":"int", "Properties":{"Ordinal":"2"}}'
21+
']'
22+
```
23+
24+
**For json mapping:**
25+
26+
```kusto
27+
.create table MyTable ingestion json mapping "JsonMapping1"
28+
'['
29+
' { "column" : "messageid", "datatype" : "string", "Properties":{"Path":"$.message-id"}},'
30+
' { "column" : "userid", "Properties":{"Path":"$.user-id"}},'
31+
' { "column" : "other", "Properties":{"Path":"$.other"}}'
32+
']'
33+
```
34+
35+
> [!TIP]
36+
> * You must include all selected properties in the mapping.
37+
> * The properties order is important in csv mapping. The system properties must be listed before all other properties and in the same order in which they appear in the **Event system properties** dropdown.

0 commit comments

Comments
 (0)