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-text-log.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.reviewer: shseth
13
13
Many applications log information to text files instead of standard logging services such as Windows Event log or Syslog. This article explains how to collect text logs from monitored machines using [Azure Monitor Agent](azure-monitor-agent-overview.md) by creating a [data collection rule (DCR)](../essentials/data-collection-rule-overview.md).
14
14
15
15
## Prerequisites
16
-
To complete this procedure, you need the following:
16
+
To complete this procedure, you need:
17
17
18
18
- Log Analytics workspace where you have at least [contributor rights](../logs/manage-access.md#azure-rbac).
@@ -50,7 +50,7 @@ To create the data collection rule in the Azure portal:
50
50
[](media/data-collection-rule-azure-monitor-agent/data-collection-rule-basics-updated.png#lightbox)
51
51
52
52
1. On the **Resources** tab:
53
-
1. Select **+ Add resources** and associate resources to the data collection rule. Resources can be virtual machines, virtual machine scale sets, and Azure Arc for servers. The Azure portal installs Azure Monitor Agent on resources that don't already have it installed.
53
+
1. Select **+ Add resources** and associate resources to the data collection rule. Resources can be virtual machines, Virtual Machine Scale Sets, and Azure Arc for servers. The Azure portal installs Azure Monitor Agent on resources that don't already have it installed.
54
54
55
55
> [!IMPORTANT]
56
56
> The portal enables system-assigned managed identity on the target resources, along with existing user-assigned identities, if there are any. For existing applications, unless you specify the user-assigned identity in the request, the machine defaults to using system-assigned identity instead.
@@ -67,7 +67,7 @@ To create the data collection rule in the Azure portal:
67
67
68
68
[](media/data-collection-text-log/custom-text-log-data-collection-rule.png#lightbox)
69
69
70
-
1. Specify the following:
70
+
1. Specify the following information:
71
71
72
72
-**File Pattern** - Identifies where the log files are located on the local disk. You can enter multiple file patterns separated by commas.
73
73
@@ -106,7 +106,7 @@ To create the data collection rule in the Azure portal:
106
106
107
107
:::image type="content" source="../logs/media/tutorial-workspace-transformations-api/build-custom-template.png" lightbox="../logs/media/tutorial-workspace-transformations-api/build-custom-template.png" alt-text="Screenshot that shows portal screen to build template in the editor.":::
108
108
109
-
1. Paste the Resource Manager template below into the editor:
109
+
1. Paste this Resource Manager template into the editor:
110
110
111
111
```json
112
112
{
@@ -253,7 +253,7 @@ To create the data collection rule in the Azure portal:
253
253
254
254
1. Select **Review + create** and then **Create** when you review the details.
255
255
256
-
1. When the deployment is complete, expand the **Deployment details** box and click on your data collection rule to view its details. Click **JSON View**.
256
+
1. When the deployment is complete, expand the **Deployment details** box and select your data collection rule to view its details. Select **JSON View**.
257
257
258
258
:::image type="content" source="media/data-collection-text-log/data-collection-rule-details.png" lightbox="media/data-collection-text-log/data-collection-rule-details.png" alt-text="Screenshot that shows the Overview pane in the portal with data collection rule details.":::
259
259
@@ -265,15 +265,15 @@ To create the data collection rule in the Azure portal:
265
265
266
266
1. Create a data collection association that associates the data collection rule to the agents with the log file to be collected. You can associate the same data collection rule with multiple agents:
267
267
268
-
1. From the **Monitor** menu in the Azure portal, select **Data Collection Rules** and select the rule that you just created.
268
+
1. From the **Monitor** menu in the Azure portal, select **Data Collection Rules** and select the rule that you created.
269
269
270
270
:::image type="content" source="media/data-collection-text-log/data-collection-rules.png" lightbox="media/data-collection-text-log/data-collection-rules.png" alt-text="Screenshot that shows the Data Collection Rules pane in the portal with data collection rules menu item.":::
271
271
272
272
1. Select **Resources** and then select **Add** to view the available resources.
273
273
274
274
:::image type="content" source="media/data-collection-text-log/add-resources.png" lightbox="media/data-collection-text-log/add-resources.png" alt-text="Screenshot that shows the Data Collection Rules pane in the portal with resources for the data collection rule.":::
275
275
276
-
1. Select either individual agents to associate the data collection rule, or select a resource group to create an association for all agents in that resource group. Click **Apply**.
276
+
1. Select either individual agents to associate the data collection rule, or select a resource group to create an association for all agents in that resource group. Select **Apply**.
277
277
278
278
:::image type="content" source="media/data-collection-text-log/select-resources.png" lightbox="media/data-collection-text-log/select-resources.png" alt-text="Screenshot that shows the Resources pane in the portal to add resources to the data collection rule.":::
279
279
@@ -282,7 +282,7 @@ To create the data collection rule in the Azure portal:
282
282
Use the following steps to troubleshoot collection of text logs.
283
283
284
284
### Check if any custom logs have been received
285
-
Start by checking if any records have been collected for your custom log table by running the following query in Log Analytics. If no records are returned then check the other sections for possible causes. This query looks for entires in the last two days, but you can modify for another time range. It can take 5-7 minutes for new data from your tables to be uploaded. Only new data will be uploaded any log file last written to prior to the DCR rules being created will not be uploaded.
285
+
Start by checking if any records have been collected for your custom log table by running the following query in Log Analytics. If records aren't returned, check the other sections for possible causes. This query looks for entires in the last two days, but you can modify for another time range. It can take 5-7 minutes for new data from your tables to be uploaded. Only new data will be uploaded any log file last written to prior to the DCR rules being created won't be uploaded.
286
286
287
287
``` kusto
288
288
<YourCustomLog>_CL
@@ -337,7 +337,7 @@ This file pattern should correspond to the logs on the agent machine.
337
337
338
338
339
339
### Verify that the text logs are being populated
340
-
The agent will only collect new content written to the log file being collected. If you are experimenting with the text logs collection feature, you can use the following script to generate sample logs.
340
+
The agent will only collect new content written to the log file being collected. If you're experimenting with the text logs collection feature, you can use the following script to generate sample logs.
341
341
342
342
```powershell
343
343
# This script writes a new log entry at the specified interval indefinitely.
0 commit comments