Skip to content

Commit d960287

Browse files
Update data-collection-text-log.md
------- cc: @guywi-ms
1 parent 0f92c54 commit d960287

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ To complete this procedure, you need:
2020
- [Permissions to create Data Collection Rule objects](../essentials/data-collection-rule-overview.md#permissions) in the workspace.
2121
- A VM, Virtual Machine Scale Set, or Arc-enabled on-premises server that writes logs to a text file.
2222

23-
Text file requirements:
24-
- Store on the local drive of the machine on which Azure Monitor Agent is running.
25-
- Delineate with an end of line.
26-
- Use ASCII or UTF-8 encoding. Other formats such as UTF-16 aren't supported.
27-
- Do not allow circular logging, log rotation where the file is overwritten with new entries, or renaming where a file is moved and a new file with the same name is opened.
23+
Text file requirements and best practices:
24+
- Do store files on the local drive of the machine on which Azure Monitor Agent is running.
25+
- Do delineate the end of a record with an end of line.
26+
- Do use ASCII or UTF-8 encoding. Other formats such as UTF-16 aren't supported.
27+
- Do create a new log file every day so that you can remove old files easily.
28+
- Do Clean up all old log files in the monitored directory. Azure Monitor Agent does not delete old log files.
29+
- Do Not overwrite an exitsing file with new data. You should only append new data to the file.
30+
- Do Not rename a file and open a new file with the same name to log to.
31+
- Do Not rename or copy large log files in to the monitored directory.
32+
- Do Not rename files in the monitored directory to a new name that is also in the monitored directory. This can cause incorrect ingestion behavior.
33+
2834

2935
## Create a custom table
3036

0 commit comments

Comments
 (0)