Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Web Server » How to Change the Log File Directory location in IIS
  • article 1280x720.192a2586
    How to fix Scheduled task status prompts error 0x800710E0 Windows Server
  • header picture
    Creating and Deploying Docker Registry Using Docker Image AWS/Azure/OpenShift
  • Defender Antivirus
    Windows Defender Antivirus Management with Intune Anti-Virus Solution
  • FEATURE IMAGE BASE URL 1
    How to solve cannot find a valid base URL for repo: base/7/x86_64 Linux
  • RDP
    The connection was denied because the user is not authorized for remote Login: Enable Remote Desktop Connection on Windows 11 for non-administrators or selected users Windows
  • How to Change the Default Web Browser on Windows 11 banner
    How to Change the Default Web Browser on Windows 11 Windows
  • WinRM and Kerberos Delegation troubleshooting
    Troubleshooting WinRM and Kerberos Delegation for WAC Network | Monitoring
  • computefeature
    How to use Azure Compute Gallery AWS/Azure/OpenShift

How to Change the Log File Directory location in IIS

Posted on 30/08/202402/09/2024 Temitope Odemo By Temitope Odemo No Comments on How to Change the Log File Directory location in IIS
IIS

The big question is Why would you want to change the Log File to another drive or to another location? The simple answer is that we want to manage and control the amount of disk space that Internet Information Services (IIS) log files consume. In this guide, you will learn how to change the log file directory location in IIS. You may also want to know how to create a self-signed cert via IIS, how to install IIS Web Server on Windows Server, and How To Use Logrotate For Managing Log Files In Ubuntu Linux.

The log files that IIS generates can usually fill up a complete hard drive. These logs increase with time and can start to consume your limited server space. This brings us to How to Change the Log File Directory location in IIS. Below is a YouTube video on how to perform this task.

We have different ways we can stop this problem: We can turn off logging completely on the system, We can enable folder compression. We can use a script to delete old files and we can move the log file to another location.

Steps On How to Change the Log File Directory location in IIS

IIS log files are usually stored by default in the %SystemDrive%\inetpub\logs\LogFiles folder of your IIS server. All what is needed is to move the IIS log files of your server to a folder on another server that has more space.

The new server or device storing your log file can either be in the same domain as the local IIS server, or a different domain.

1. Login to the Remote Server on the same domain or Network as the IIS Server. Create a log-file folder “IIS Log File“.

iis

2. Open the folder’s Properties page, on the Sharing tab, click Share so that the folder is globally shared.

On the Security tab, assign groups and users with the appropriate permissions. So that they can read and write to the log files. But in this article i will add “Everyone“.

share

3. This image showed the folder shared and the new log file directory created.

folderShared

3. Run inetmgr command to open IIS Manager on your IIS Server.

IIS Manager

4. Click the Server on the connections pane.

IIS Connection

5. Double-click Logging on the middle pane.

logging

6. What we are going to do next now is to change the log file default directory to the new log file directory we created on the remote server.

On the One log file per drop down, select the type of log you want to capture Server or Site. On the directory box, browse to the new IIS Log File directory created on the remote server.

default location

Here is how to fix “Application pool has been disabled or Changing identity user for IIS Application Pool (Event ID 5059)“, and how to “Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell“.

New File Location

7. The below shows the New Log File Directory added and once you click browse it will connect to the new directory and your Log file will start flowing to the new location.

NewlogFile

Also, see how to install and debug logs with the CMTrace Tool, How to install Pleasant Password Server, and how to Change the default Save and Download Location in Windows.

I hope you found this blog post on how to Change the Log File Directory location in IIS Interesting and helpful. If you have any questions do not hesitate to ask in the comment section.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Web Server Tags:IIS, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Prevent OS Reinstallation: Change from legacy BIOS to UEFI
Next Post: Enable or Disable Control Panel and Windows Settings App

Related Posts

  • windows 10 logo 100739284 large
    Application pool has been disabled or Changing identity user for IIS Application Pool (Event ID 5059) Web Server
  • Amazon EC2 and S3
    How to sync S3 Bucket with an EC2 instance AWS/Azure/OpenShift
  • Screenshot 2022 03 21 at 18.06.30
    How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
  • Azure Virtual Desktop
    How to deploy Azure Virtual Desktop in Azure Portal Virtualization
  • Capture 91
    How to install IIS Web Server on Windows Server Web Server
  • Azure Storage 1
    Azure CLI: How To Upload Batch Files to Azure Storage Account AWS/Azure/OpenShift

More Related Articles

windows 10 logo 100739284 large Application pool has been disabled or Changing identity user for IIS Application Pool (Event ID 5059) Web Server
Amazon EC2 and S3 How to sync S3 Bucket with an EC2 instance AWS/Azure/OpenShift
Screenshot 2022 03 21 at 18.06.30 How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
Azure Virtual Desktop How to deploy Azure Virtual Desktop in Azure Portal Virtualization
Capture 91 How to install IIS Web Server on Windows Server Web Server
Azure Storage 1 Azure CLI: How To Upload Batch Files to Azure Storage Account AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • article 1280x720.192a2586
    How to fix Scheduled task status prompts error 0x800710E0 Windows Server
  • header picture
    Creating and Deploying Docker Registry Using Docker Image AWS/Azure/OpenShift
  • Defender Antivirus
    Windows Defender Antivirus Management with Intune Anti-Virus Solution
  • FEATURE IMAGE BASE URL 1
    How to solve cannot find a valid base URL for repo: base/7/x86_64 Linux
  • RDP
    The connection was denied because the user is not authorized for remote Login: Enable Remote Desktop Connection on Windows 11 for non-administrators or selected users Windows
  • How to Change the Default Web Browser on Windows 11 banner
    How to Change the Default Web Browser on Windows 11 Windows
  • WinRM and Kerberos Delegation troubleshooting
    Troubleshooting WinRM and Kerberos Delegation for WAC Network | Monitoring
  • computefeature
    How to use Azure Compute Gallery AWS/Azure/OpenShift

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.