Skip to content

Commit 866ba29

Browse files
committed
Update data-collection-text-log.md
1 parent f33167a commit 866ba29

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: shseth
1313
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).
1414

1515
## Prerequisites
16-
To complete this procedure, you need the following:
16+
To complete this procedure, you need:
1717

1818
- Log Analytics workspace where you have at least [contributor rights](../logs/manage-access.md#azure-rbac).
1919
- [Data collection endpoint](../essentials/data-collection-endpoint-overview.md#create-data-collection-endpoint).
@@ -50,7 +50,7 @@ To create the data collection rule in the Azure portal:
5050
[ ![Screenshot that shows the Basics tab of the Data Collection Rule screen.](media/data-collection-rule-azure-monitor-agent/data-collection-rule-basics-updated.png) ](media/data-collection-rule-azure-monitor-agent/data-collection-rule-basics-updated.png#lightbox)
5151

5252
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.
5454

5555
> [!IMPORTANT]
5656
> 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:
6767

6868
[ ![Screenshot that shows the Add data source screen for a data collection rule in Azure portal.](media/data-collection-text-log/custom-text-log-data-collection-rule.png)](media/data-collection-text-log/custom-text-log-data-collection-rule.png#lightbox)
6969

70-
1. Specify the following:
70+
1. Specify the following information:
7171

7272
- **File Pattern** - Identifies where the log files are located on the local disk. You can enter multiple file patterns separated by commas.
7373

@@ -106,7 +106,7 @@ To create the data collection rule in the Azure portal:
106106

107107
:::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.":::
108108

109-
1. Paste the Resource Manager template below into the editor:
109+
1. Paste this Resource Manager template into the editor:
110110

111111
```json
112112
{
@@ -253,7 +253,7 @@ To create the data collection rule in the Azure portal:
253253

254254
1. Select **Review + create** and then **Create** when you review the details.
255255

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**.
257257

258258
:::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.":::
259259

@@ -265,15 +265,15 @@ To create the data collection rule in the Azure portal:
265265

266266
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:
267267

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.
269269

270270
:::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.":::
271271

272272
1. Select **Resources** and then select **Add** to view the available resources.
273273

274274
:::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.":::
275275

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**.
277277

278278
:::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.":::
279279

@@ -282,7 +282,7 @@ To create the data collection rule in the Azure portal:
282282
Use the following steps to troubleshoot collection of text logs.
283283

284284
### 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.
286286

287287
``` kusto
288288
<YourCustomLog>_CL
@@ -337,7 +337,7 @@ This file pattern should correspond to the logs on the agent machine.
337337

338338

339339
### 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.
341341

342342
```powershell
343343
# This script writes a new log entry at the specified interval indefinitely.

0 commit comments

Comments
 (0)