Skip to content

Commit 05a4902

Browse files
authored
Merge pull request #238359 from hestolz/patch-1
Fix note about comma-separated list of files
2 parents fed672d + ee42a95 commit 05a4902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ To create the data collection rule in the Azure portal:
122122

123123
1. Specify the following information:
124124

125-
- **File Pattern** - Identifies where the log files are located on the local disk. You can enter multiple file patterns separated by commas if your AMA is using Fluent Bit v1.5.1 or more.
125+
- **File Pattern** - Identifies where the log files are located on the local disk. You can enter multiple file patterns separated by commas (on Linux, AMA version 1.26 or higher is required to collect from a comma-separated list of file patterns).
126126

127127
Examples of valid inputs:
128128
- 20220122-MyLog.txt
129129
- ProcessA_MyLog.txt
130-
- ErrorsOnly_MyLog.txt, WarningOnly_MyLog.txt
130+
- ErrorsOnly_MyLog.txt, WarningOnly_MyLog.txt
131131

132132
> [!NOTE]
133133
> 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.

0 commit comments

Comments
 (0)