Tips to manage IIS log files

Download as pdf : 
Products: Aspen Production Control Web Server 
Last Updated: 09-May-2022
Versions: 
Article ID: 000099767
Primary Subject: 
Problem Statement
This article mentioned a couple of tips that can be useful when dealing with IIS log files storage. The most common type of problem related to this kind of files is memory shortage. However, these files could be not significant for Web or Online applications as PCWS or the DMC controllers.

Solution
As many other application IIS has the capability of generate logs for further troubleshooting on some applications related. However, problems as memory consumption and hard drive consumption could be consequence of constant increase of these files.

On a normal situation, these files would not be harmful on Web applications as PCWS, or Applications as DMC controllers. However, as the logging would consume memory it could be a process that may create issues on AspenWatch server and in edge cases the resources consumption could create problem on some AspenTech Services.

Additionally, delete these log files would not create problem on Web applications. (most likely it is fine for any APC server)

These files are normally stored on the following path:

C:inetpub/logs/logfiles/W3SVC1 (this path may require Admin right to access)

And the recommended process to delete these files is:

1) Launch a command prompt using Run as administrator.
2) Stop IIS with below command:

iisreset /stop
3) Browse to C:\inetpub\logs\Logfiles\W3SVC1 folder in Windows Explorer.
4) Delete the log files.
5) Start IIS with below command.
            iisreset /start


Note: after the iisreset/start command is performed make sure that Web Data provider Service, RTE service and/or Performance Monitor Service started successfully.

Additionally, further information on how these files can be manage can be found on the following Microsoft KB

https://docs.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/managing-iis-log-file-storage

Keywords
PCWS, IIS, Log files