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
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,26 @@ To create the data collection rule in the Azure portal:
61
61
1. On the **Collect and deliver** tab, select **Add data source** to add a data source and set a destination.
62
62
1. Select **Custom Text Logs**.
63
63
64
-
[](media/data-collection-text-log/custom-text-log-data-collection-rule.png#lightbox)
64
+
[](media/data-collection-text-log/custom-text-log-data-collection-rule.png#lightbox)
65
65
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
+
67
84
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.
68
85
69
86
[](media/data-collection-rule-azure-monitor-agent/data-collection-rule-destination.png#lightbox)
0 commit comments