Skip to content

Commit 9393b0b

Browse files
authored
Merge pull request #222439 from guywi-ms/add-transformation-to-text-logs-ama
Update data-collection-text-log.md
2 parents 5772e49 + 76c428a commit 9393b0b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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-a-data-collection-endpoint).
20-
- When use the Azure portal to create a data collection rule for collecting text logs, Azure Monitor automatically creates a destination table in your Log Analytics workspace. When you create a data collection rule using the API, you must first [create a custom table](../logs/create-custom-table.md#create-a-custom-table) to send your logs to.
20+
- [Custom table](../logs/create-custom-table.md) to send your logs to.
2121
- [Permissions to create Data Collection Rule objects](../essentials/data-collection-rule-overview.md#permissions) in the workspace.
2222
- A machine that write logs to a text file.
2323

@@ -42,10 +42,11 @@ To create the data collection rule in the Azure portal:
4242

4343
[ ![Screenshot that shows the Create button on the Data Collection Rules screen.](media/data-collection-rule-azure-monitor-agent/data-collection-rules-updated.png) ](media/data-collection-rule-azure-monitor-agent/data-collection-rules-updated.png#lightbox)
4444

45-
1. Enter a **Rule name** and specify a **Subscription**, **Resource Group**, **Region**, and **Platform Type**:
45+
1. Enter a **Rule name** and specify a **Subscription**, **Resource Group**, **Region**, **Platform Type**, and **Data Collection Endpoint**:
4646

4747
- **Region** specifies where the DCR will be created. The virtual machines and their associations can be in any subscription or resource group in the tenant.
4848
- **Platform Type** specifies the type of resources this rule can apply to. The **Custom** option allows for both Windows and Linux types.
49+
- **Data Collection Endpoint** is required to collect custom logs.
4950

5051
[ ![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)
5152

@@ -80,8 +81,7 @@ To create the data collection rule in the Azure portal:
8081
> Multiple log files of the same type commonly exist in the same directory. For example, a machine might create a new file every day to prevent the log file from growing too large. To collect log data in this scenario, you can use a file wildcard. Use the format `C:\directoryA\directoryB\*MyLog.txt` for Windows and `/var/*.log` for Linux. There is no support for directory wildcards.
8182
8283

83-
- **Table name** - The name of the destination table you created in your Log Analytics Workspace. For more information, see [Prerequisites](#prerequisites).
84-
84+
- **Table name** - The name of the destination table you created in your Log Analytics Workspace. For more information, see [Prerequisites](#prerequisites).
8585
- **Record delimiter** - Will be used in the future to allow delimiters other than the currently supported end of line (`/r/n`).
8686
- **Transform** - Add an [ingestion-time transformation](../essentials/data-collection-transformations.md) or leave as **source** if you don't need to transform the collected data.
8787

@@ -278,6 +278,7 @@ To create the data collection rule in the Azure portal:
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

280280
---
281+
281282
## Troubleshoot
282283
Use the following steps to troubleshoot collection of text logs.
283284

Loading

articles/azure-monitor/logs/create-custom-table.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ To create a custom table, you need:
2626
[
2727
{
2828
"TimeGenerated": "supported_datetime_format",
29-
"<column_name_1": "<column_name_1_value>",
30-
"<column_name_2": "<column_name_2_value>"
29+
"<column_name_1>": "<column_name_1_value>",
30+
"<column_name_2>": "<column_name_2_value>"
3131
}
3232
]
3333
```

0 commit comments

Comments
 (0)