question

arkansamer-8334 avatar image
0 Votes"
arkansamer-8334 asked TeemoTang-MSFT answered

LogFiles it full

I have a problem with this file C:\inetpub\logs\LogFiles, its size increases every minute, which leads to filling

windows-serverazure-vmware-solution
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In case you have multiple drivers, you may try to expand it or you may try to perform a disk clean up.

0 Votes 0 ·

Thanks for posting here. Can you please elaborate on which Azure services are you using, your scenario in details etc. I see that you have tagged azure-vmware-solution, is your question related to that? Please let me know so that I can redirect this question to the specific area experts. Thanks.

0 Votes 0 ·

1 Answer

TeemoTang-MSFT avatar image
0 Votes"
TeemoTang-MSFT answered

Please check this document for some ideas.
Managing IIS Log File Storage
https://docs.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/managing-iis-log-file-storage

Also, there is a similar case which provides a good task scheduler method:

I trim mine with the following command which creates a scheduled task to do it :-

at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"

This will run every Sunday, and will trim files in that folder older than 30 days. Adjust to suit.
Source case:
https://social.technet.microsoft.com/Forums/systemcenter/en-US/d989b249-0159-41fc-b78c-1f1d91ce8bb3/inetpublogslogfilesw3svc1-getting-very-large?forum=configmgrgeneral


If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.