@@ -70,18 +70,16 @@ Use the following example as a template to create or update a DCR:
70
70
71
71
### Request URL and header
72
72
73
- ``` rest
74
-
75
- PUT
76
-
77
- https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2019-11-01-preview
73
+ ``` http
74
+ PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dataCollectionRuleName}?api-version=2019-11-01-preview
78
75
```
79
76
80
77
### Request body
81
78
82
- ``` rest
83
-
79
+ ``` json
84
80
{
81
+ "location" : " eastus2" ,
82
+ "kind" : " Windows" ,
85
83
"properties" : {
86
84
"dataSources" : {
87
85
"windowsEventLogs" : [],
113
111
"destinations" : {
114
112
"logAnalytics" : [
115
113
{
116
- "workspaceResourceId" : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{sentinelWorkspaceName} ",
117
- "workspaceId": {WorkspaceGuid}",
118
- "name" : "WorkspaceDestination "
114
+ "name" : " WorkspaceDestination " ,
115
+ "workspaceId" : " {WorkspaceGuid}" ,
116
+ "workspaceResourceId" : " /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.OperationalInsights/workspaces/{sentinelWorkspaceName} "
119
117
}
120
118
]
121
119
},
@@ -125,17 +123,12 @@ PUT
125
123
" Microsoft-ASimDnsActivityLogs"
126
124
],
127
125
"destinations" : [
128
- " WorkspaceDestination "
126
+ " WorkspaceDestination"
129
127
]
130
128
}
131
129
],
132
130
},
133
- "location": "eastus2",
134
- "tags": {},
135
- "kind": "Windows",
136
- "id":"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Insights/dataCollectionRules/{workspaceName}-microsoft-sentinel-asimdnsactivitylogs ",
137
- "name": " {workspaceName}-microsoft-sentinel-asimdnsactivitylogs ",
138
- "type": "Microsoft.Insights/dataCollectionRules",
131
+ "tags" : {}
139
132
}
140
133
```
141
134
@@ -203,7 +196,7 @@ This filter instructs the connector not to collect EventID 256 or EventID 257 or
203
196
204
197
** Using the API** :
205
198
206
- ``` rest
199
+ ``` json
207
200
"Filters" : [
208
201
{
209
202
"FilterName" : " SampleFilter" ,
@@ -260,32 +253,20 @@ To define different values in a single field, use the **OR** operator.
260
253
261
254
Review these considerations for [ using wildcards] ( #use-wildcards ) .
262
255
263
- ``` rest
256
+ ``` json
264
257
"Filters" : [
265
-
266
258
{
267
-
268
259
"FilterName" : " SampleFilter" ,
269
-
270
260
"Rules" : [
271
-
272
261
{
273
-
274
262
"Field" : " DnsQuery" ,
275
-
276
263
"FieldValues" : [
277
-
278
264
" *.microsoft.com" , " *.google.com" , " facebook.com" , " *.amazon.com" ," center.local"
279
-
280
- ]
281
-
282
- },
283
-
284
- }
285
-
286
- }
287
-
288
- ]
265
+ ]
266
+ }
267
+ ]
268
+ }
269
+ ]
289
270
```
290
271
291
272
## Normalization using ASIM
0 commit comments