Skip to content

Commit d1ee517

Browse files
committed
Update data-collection-text-log.md
1 parent 4d08f43 commit d1ee517

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

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

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,26 @@ To create the data collection rule in the Azure portal:
6161
1. On the **Collect and deliver** tab, select **Add data source** to add a data source and set a destination.
6262
1. Select **Custom Text Logs**.
6363

64-
[ ![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)
64+
[ ![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)
6565

66-
1. Optionally, specify a file pattern to identify the directory where the log files are located.
66+
1. Specify the following:
67+
68+
- **File Pattern** - Identifies where the log files are located on the local disk. You can enter multiple file patterns separated by commas.
69+
70+
Examples of valid inputs:
71+
- `20220122-MyLog.txt`
72+
- `ProcessA_MyLog.txt`
73+
- `ErrorsOnly_MyLog.txt, WarningOnly_MyLog.txt`
74+
75+
> [!NOTE]
76+
> 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 support collecting log data in this scenario, you can use a file wildcard. The canonical form is `C:\directoryA\directoryB\*MyLog.txt` for Windows and `/var/*.log` for Linux. There is no support for directory wildcards.
77+
78+
79+
- **Table name** - The name of the destination table you created in your Log Analytics Workspace. For more information, see [Prerequisites](#prerequisites).
80+
81+
- **Record delimiter** - Will be used in the future to allow delimiters other than the currently supported end of line (`/r/n`).
82+
- **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.
83+
6784
1. On the **Destination** tab, add one or more destinations for the data source. You can select multiple destinations of the same or different types. For instance, you can select multiple Log Analytics workspaces, which is also known as multihoming.
6885

6986
[ ![Screenshot that shows the destination tabe of the Add data source screen for a data collection rule in Azure portal.](media/data-collection-rule-azure-monitor-agent/data-collection-rule-destination.png) ](media/data-collection-rule-azure-monitor-agent/data-collection-rule-destination.png#lightbox)

0 commit comments

Comments
 (0)