LogFiles it full

arkan samer 1 Reputation point

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

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
313 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,078 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Teemo Tang 11,331 Reputation points

    Please check this document for some ideas.
    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 @mutia keyza \"

    This will run every Sunday, and will trim files in that folder older than 30 days. Adjust to suit.
    Source case:

    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.

    0 comments No comments