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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,14 @@ To complete this procedure, you need:
21
21
- A VM, Virtual Machine Scale Set, or Arc-enabled on-premises server that writes logs to a text file.
22
22
23
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.
24
+
- Do store files on the local drive of the machine on which Azure Monitor Agent is running and in the directory that is being monitored.
25
25
- Do delineate the end of a record with an end of line.
26
26
- Do use ASCII or UTF-8 encoding. Other formats such as UTF-16 aren't supported.
27
27
- Do create a new log file every day so that you can remove old files easily.
28
28
- Do clean up all log files older than 2 days in the monitored directory. Azure Monitor Agent does not delete old log files and tracking them uses up Agent resources.
29
29
- Do Not overwrite an existing 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.
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. If you must, do not exceed 50MB per minute
32
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.
0 commit comments