Skip to content

Commit c9fbc86

Browse files
authored
Merge pull request #201144 from TimShererWithAquent/t581147aq
Edits to improve SEO and usability
2 parents 9eaa6c0 + 6cd15a2 commit c9fbc86

File tree

2 files changed

+54
-28
lines changed

2 files changed

+54
-28
lines changed

articles/network-watcher/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
href: traffic-analytics-policy-portal.md
175175
- name: Schema and Data Aggregation
176176
href: traffic-analytics-schema.md
177-
- name: Schema update (August 2019)
177+
- name: Schema update (March 2020)
178178
href: traffic-analytics-schema-update.md
179179
- name: View network security groups
180180
items:

articles/network-watcher/traffic-analytics-schema-update.md

Lines changed: 53 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,52 @@
11
---
2-
title: Azure Traffic Analytics schema update - March 2020 | Microsoft Docs
3-
description: Sample queries with new fields in the Traffic Analytics schema.
2+
title: Azure Traffic Analytics schema update - March 2020
3+
description: Sample queries with new fields in the Traffic Analytics schema. Use these three examples to replace the deprecated fields with the new ones.
44
services: network-watcher
55
documentationcenter: na
6-
author: vinigam
7-
manager: agummadi
6+
author: Harsha-CS
7+
manager: vinigam
88
editor:
99

1010
ms.service: network-watcher
11-
ms.topic: article
11+
ms.topic: how-to
12+
ms.custom: kr2b-contr-experiment
1213
ms.tgt_pltfrm: na
1314
ms.workload: infrastructure-services
14-
ms.date: 01/07/2021
15-
ms.author: vinigam
15+
ms.date: 06/13/2022
16+
ms.author: harshacs
1617

1718
---
18-
# Sample queries with new fields in the Traffic Analytics schema (August 2019 schema update)
19+
# Sample queries with new fields in the Traffic Analytics schema (March 2020 schema update)
1920

20-
The [Traffic Analytics log schema](./traffic-analytics-schema.md) includes the following new fields: **SrcPublicIPs_s**, **DestPublicIPs_s**, **NSGRule_s**. The new fields provide information about source and destination IPs, and they simplify queries.
21+
The [Traffic Analytics log schema](./traffic-analytics-schema.md) includes the following new fields:
2122

22-
In the next few months, the following older fields will be deprecated: **VMIP_s**, **Subscription_g**, **Region_s**, **NSGRules_s**, **Subnet_s**, **VM_s**, **NIC_s**, **PublicIPs_s**, **FlowCount_d**.
23+
- `SrcPublicIPs_s`
24+
- `DestPublicIPs_s`
25+
- `NSGRule_s`
26+
27+
The new fields provide information about source and destination IPs, and they simplify queries.
28+
29+
The following older fields will be deprecated in future:
30+
31+
- `VMIP_s`
32+
- `Subscription_g`
33+
- `Region_s`
34+
- `NSGRules_s`
35+
- `Subnet_s`
36+
- `VM_s`
37+
- `NIC_s`
38+
- `PublicIPs_s`
39+
- `FlowCount_d`
2340

2441
The following three examples show how to replace the old fields with the new ones.
2542

2643
## Example 1: VMIP_s, Subscription_g, Region_s, Subnet_s, VM_s, NIC_s, and PublicIPs_s fields
2744

28-
We don't have to infer source and destination cases from the **FlowDirection_s** field for AzurePublic and ExternalPublic flows. It can also be inappropriate to use the **FlowDirection_s** field for a network virtual appliance.
45+
The schema doesn't have to infer source and destination cases from the `FlowDirection_s` field for AzurePublic and ExternalPublic flows. It can also be inappropriate to use the `FlowDirection_s` field for a network virtual appliance.
46+
47+
Previous Kusto query:
2948

30-
```Old Kusto query
49+
```kusto
3150
AzureNetworkAnalytics_CL
3251
| where SubType_s == "FlowLog" and FASchemaVersion_s == "1"
3352
| extend isAzureOrExternalPublicFlows = FlowType_s in ("AzurePublic", "ExternalPublic")
@@ -47,8 +66,9 @@ SourcePublicIPsAggregated = iif(isAzureOrExternalPublicFlows and FlowDirection_s
4766
DestPublicIPsAggregated = iif(isAzureOrExternalPublicFlows and FlowDirection_s == 'O', PublicIPs_s, "N/A")
4867
```
4968

69+
New Kusto query:
5070

51-
```New Kusto query
71+
```kusto
5272
AzureNetworkAnalytics_CL
5373
| where SubType_s == "FlowLog" and FASchemaVersion_s == "2"
5474
| extend SourceAzureVM = iif(isnotempty(VM1_s), VM1_s, "N/A"),
@@ -69,13 +89,17 @@ DestPublicIPsAggregated = iif(isnotempty(DestPublicIPs_s), DestPublicIPs_s, "N/A
6989

7090
## Example 2: NSGRules_s field
7191

72-
The old field used the format:
92+
The old field used the following format:
7393

74-
`<Index value 0)>|<NSG_ RuleName>|<Flow Direction>|<Flow Status>|<FlowCount ProcessedByRule>`
94+
```kusto
95+
<Index value 0)>|<NSG_ RuleName>|<Flow Direction>|<Flow Status>|<FlowCount ProcessedByRule>
96+
```
97+
98+
The schema no longer aggregates data across a network security group (NSG). In the updated schema, `NSGList_s` contains only one NSG. Also, `NSGRules` contains only one rule. The complicated formatting has been removed here and in other fields, as shown in the following example.
7599

76-
We no longer aggregate data across a network security group (NSG). In the updated schema, **NSGList_s** contains only one NSG. Also **NSGRules** contains only one rule. We removed the complicated formatting here and in other fields as shown in the example.
100+
Previous Kusto query:
77101

78-
```Old Kusto query
102+
```kusto
79103
AzureNetworkAnalytics_CL
80104
| where SubType_s == "FlowLog" and FASchemaVersion_s == "1"
81105
| extend NSGRuleComponents = split(NSGRules_s, "|")
@@ -87,7 +111,9 @@ AzureNetworkAnalytics_CL
87111
| project NSGName, NSGRuleName, FlowDirection, FlowStatus, FlowCountProcessedByRule
88112
```
89113

90-
```New Kusto query
114+
New Kusto query:
115+
116+
```kusto
91117
AzureNetworkAnalytics_CL
92118
| where SubType_s == "FlowLog" and FASchemaVersion_s == "2"
93119
| extend NSGRuleComponents = split(NSGRules_s, "|")
@@ -100,22 +126,22 @@ FlowCountProcessedByRule = AllowedInFlows_d + DeniedInFlows_d + AllowedOutFlows_
100126

101127
## Example 3: FlowCount_d field
102128

103-
Because we do not club data across the NSG, the **FlowCount_d** is simply:
129+
Because the schema doesn't club data across the NSG, the `FlowCount_d` is simply:
104130

105-
**AllowedInFlows_d** + **DeniedInFlows_d** + **AllowedOutFlows_d** + **DeniedOutFlows_d**
131+
`AllowedInFlows_d` + `DeniedInFlows_d` + `AllowedOutFlows_d` + `DeniedOutFlows_d`
106132

107-
Only one of the four fields will be nonzero. The other three fields will be zero. The fields populate to indicate the status and count in the NIC where the flow was captured.
133+
Only one of the four fields is nonzero. The other three fields are zero. The fields populate to indicate the status and count in the NIC where the flow was captured.
108134

109135
To illustrate these conditions:
110136

111-
- If the flow was allowed, one of the "Allowed" prefixed fields will be populated.
112-
- If the flow was denied, one of the "Denied" prefixed fields will be populated.
113-
- If the flow was inbound, one of the "InFlows_d" suffixed fields will be populated.
114-
- If the flow was outbound, one of the "OutFlows_d" suffixed fields will be populated.
137+
- If the flow was allowed, one of the `Allowed` prefixed fields is populated.
138+
- If the flow was denied, one of the `Denied` prefixed fields is populated.
139+
- If the flow was inbound, one of the `InFlows_d` suffixed fields is populated.
140+
- If the flow was outbound, one of the `OutFlows_d` suffixed fields is populated.
115141

116-
Depending on the conditions, we know which one of the four fields will be populated.
142+
Depending on the conditions, it's clear which of the four fields is populated.
117143

118144
## Next steps
119145

120146
- To get answers to frequently asked questions, see [Traffic Analytics FAQ](traffic-analytics-faq.yml).
121-
- To see details about functionality, see [Traffic Analytics documentation](traffic-analytics.md).
147+
- To see details about functionality, see [Traffic Analytics documentation](traffic-analytics.md).

0 commit comments

Comments
 (0)