You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/agents/data-collection-log-json.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Collect logs from a JSON file with Azure Monitor Agent
3
3
description: Configure a data collection rule to collect log data from a JSON file on a virtual machine using Azure Monitor Agent.
4
4
ms.topic: conceptual
5
-
ms.date: 08/23/2024
5
+
ms.date: 08/28/2024
6
6
author: guywi-ms
7
7
ms.author: guywild
8
8
ms.reviewer: jeffwo
@@ -16,7 +16,7 @@ Many applications and services will log information to a JSON files instead of s
16
16
## Prerequisites
17
17
18
18
- Log Analytics workspace where you have at least [contributor rights](../logs/manage-access.md#azure-rbac).
19
-
- A data collection endpoint (DCE) if you plan to use Azure Monitor Private Links. The data collection endpoint must be in the same region as the Log Analytics workspace. See [How to set up data collection endpoints based on your deployment](../essentials/data-collection-endpoint-overview.md#how-to-set-up-data-collection-endpoints-based-on-your-deployment) for details.
19
+
- A data collection endpoint (DCE) in the same region as the Log Analytics workspace. See [How to set up data collection endpoints based on your deployment](../essentials/data-collection-endpoint-overview.md#how-to-set-up-data-collection-endpoints-based-on-your-deployment) for details.
20
20
- Either a new or existing DCR described in [Collect data with Azure Monitor Agent](./azure-monitor-agent-data-collection.md).
21
21
22
22
## Basic operation
@@ -133,6 +133,7 @@ Use the following ARM template to create a DCR for collecting text log files, ma
133
133
| Setting | Description |
134
134
|:---|:---|
135
135
| Data collection rule name | Unique name for the DCR. |
136
+
| Data collection endpoint resource ID | Resource ID of the data collection endpoint (DCE). |
136
137
| Location | Region for the DCR. Must be the same location as the Log Analytics workspace. |
137
138
| File patterns | Identifies the location and name of log files on the local disk. Use a wildcard for filenames that vary, for example when a new file is created each day with a new name. You can enter multiple file patterns separated by commas (AMA version 1.26 or higher required for multiple file patterns on Linux).<br><br>Examples:<br>- C:\Logs\MyLog.json<br>- C:\Logs\MyLog*.json<br>- C:\App01\AppLog.json, C:\App02\AppLog.json<br>- /var/mylog.json<br>- /var/mylog*.json |
138
139
| Table name | Name of the destination table in your Log Analytics Workspace. |
@@ -152,6 +153,12 @@ Use the following ARM template to create a DCR for collecting text log files, ma
152
153
"description": "Unique name for the DCR. "
153
154
}
154
155
},
156
+
"dataCollectionEndpointResourceId": {
157
+
"type": "string",
158
+
"metadata": {
159
+
"description": "Resource ID of the data collection endpoint (DCE)."
160
+
}
161
+
},
155
162
"location": {
156
163
"type": "string",
157
164
"metadata": {
@@ -175,12 +182,6 @@ Use the following ARM template to create a DCR for collecting text log files, ma
175
182
"metadata": {
176
183
"description": "Resource ID of the Log Analytics workspace with the target table."
177
184
}
178
-
},
179
-
"dataCollectionEndpointResourceId": {
180
-
"type": "string",
181
-
"metadata": {
182
-
"description": "Resource ID of the Data Collection Endpoint to be used with this rule."
183
-
}
184
185
}
185
186
},
186
187
"variables": {
@@ -193,6 +194,7 @@ Use the following ARM template to create a DCR for collecting text log files, ma
Copy file name to clipboardExpand all lines: articles/azure-monitor/agents/data-collection-log-text.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Collect logs from a text file with Azure Monitor Agent
3
3
description: Configure a data collection rule to collect log data from a text file on a virtual machine using Azure Monitor Agent.
4
4
ms.topic: conceptual
5
-
ms.date: 08/23/2024
5
+
ms.date: 08/28/2024
6
6
author: guywi-ms
7
7
ms.author: guywild
8
8
ms.reviewer: jeffwo
@@ -16,7 +16,7 @@ Many applications and services will log information to text files instead of sta
16
16
## Prerequisites
17
17
18
18
- Log Analytics workspace where you have at least [contributor rights](../logs/manage-access.md#azure-rbac).
19
-
- A data collection endpoint (DCE) if you plan to use Azure Monitor Private Links. The data collection endpoint must be in the same region as the Log Analytics workspace. See [How to set up data collection endpoints based on your deployment](../essentials/data-collection-endpoint-overview.md#how-to-set-up-data-collection-endpoints-based-on-your-deployment) for details.
19
+
- A data collection endpoint (DCE) in the same region as the Log Analytics workspace. See [How to set up data collection endpoints based on your deployment](../essentials/data-collection-endpoint-overview.md#how-to-set-up-data-collection-endpoints-based-on-your-deployment) for details.
20
20
- Either a new or existing DCR described in [Collect data with Azure Monitor Agent](./azure-monitor-agent-data-collection.md).
21
21
22
22
## Basic operation
@@ -143,6 +143,12 @@ Use the following ARM template to create or modify a DCR for collecting text log
143
143
"description": "Unique name for the DCR. "
144
144
}
145
145
},
146
+
"dataCollectionEndpointResourceId": {
147
+
"type": "string",
148
+
"metadata": {
149
+
"description": "Resource ID of the data collection endpoint (DCE)."
150
+
}
151
+
},
146
152
"location": {
147
153
"type": "string",
148
154
"metadata": {
@@ -178,6 +184,7 @@ Use the following ARM template to create or modify a DCR for collecting text log
0 commit comments