Skip to content

Commit 004ba3b

Browse files
Merge pull request #281895 from JeffreyWolford/patch-23
Update data-collection-log-json.md
2 parents 58fc9a2 + 6b4d3c5 commit 004ba3b

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

articles/azure-monitor/agents/data-collection-log-json.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,34 +146,40 @@ Use the following ARM template to create a DCR for collecting text log files. In
146146
"type": "string",
147147
"metadata": {
148148
"description": "Unique name for the DCR. "
149-
},
149+
}
150150
},
151151
"location": {
152152
"type": "string",
153153
"metadata": {
154154
"description": "Region for the DCR. Must be the same location as the Log Analytics workspace. "
155+
}
155156
},
156157
"filePatterns": {
157158
"type": "string",
158159
"metadata": {
159160
"description": "Path on the local disk for the log file to collect. May include wildcards.Enter multiple file patterns separated by commas (AMA version 1.26 or higher required for multiple file patterns on Linux)."
160-
},
161+
}
161162
},
162163
"tableName": {
163164
"type": "string",
164165
"metadata": {
165166
"description": "Name of destination table in your Log Analytics workspace. "
166-
},
167+
}
167168
},
168169
"workspaceResourceId": {
169170
"type": "string",
170171
"metadata": {
171172
"description": "Resource ID of the Log Analytics workspace with the target table."
172-
},
173-
}
173+
}
174+
},
175+
"dataCollectionEndpointResourceId": {
176+
"type": "string",
177+
"metadata": { "description": "Resource ID of the Data Collection Endpoint to be used with this rule."
178+
}
179+
}
174180
},
175181
"variables": {
176-
"tableOutputStream": "['Custom-',concat(parameters('tableName'))]"
182+
"tableOutputStream": "[concat('Custom-', parameters('tableName'))]]"
177183
},
178184
"resources": [
179185
{
@@ -191,7 +197,7 @@ Use the following ARM template to create a DCR for collecting text log files. In
191197
},
192198
{
193199
"name": "FilePath",
194-
"type": "String"
200+
"type": "string"
195201
},
196202
{
197203
"name": "MyStringColumn",
@@ -207,7 +213,7 @@ Use the following ARM template to create a DCR for collecting text log files. In
207213
},
208214
{
209215
"name": "MyBooleanColumn",
210-
"type": "bool"
216+
"type": "boolean"
211217
}
212218
]
213219
}
@@ -237,7 +243,7 @@ Use the following ARM template to create a DCR for collecting text log files. In
237243
"dataFlows": [
238244
{
239245
"streams": [
240-
"Custom-Json-dataSource"
246+
"Custom-JSONLog-stream"
241247
],
242248
"destinations": [
243249
"workspace"
@@ -246,6 +252,7 @@ Use the following ARM template to create a DCR for collecting text log files. In
246252
"outputStream": "[variables('tableOutputStream')]"
247253
}
248254
]
255+
"dataCollectionEndpointId" : "[parameters('dataCollectionEndpointResourceId')]"
249256
}
250257
}
251258
]

0 commit comments

Comments
 (0)