Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Tech News
  • Contact
  • Toggle search form

How to Change the Log File Directory location in IIS

Posted on 30/08/202430/06/2026 Temitope Odemo By Temitope Odemo No Comments on How to Change the Log File Directory location in IIS
  1. Home
  2. Web Server
  3. 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.

Play

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.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Web Server Tags:configure IIS logging directory Windows Server, IIS, IIS change log file directory, IIS log file location customization, IIS log rotation directory setup, IIS logging settings advanced configuration, IIS site logging path change, IIS W3C log file path change, move IIS logs folder location, set IIS log directory per site, Windows 10, Windows 11, Windows Server 2016, Windows Server IIS log management

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

  • Wordpress
    How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER Web Server
  • http trace fiddler
    How to Disable HTTP TRACE Method for Apache, IIS, sunOne, and Lotus Domino Web Server
  • Secure Web Server
    How to secure a Web Server on a Windows VM in Azure using TLS/SSL Certificates Saved in Azure Key Vault AWS/Azure/OpenShift
  • http to https redirection
    URL Rewrite: How to redirect from HTTP to HTTPS Web Server
  • Azure VM Creation With CLI 1
    Deploy a Linux virtual machine (VM) on Azure using the Azure CLI AWS/Azure/OpenShift
  • Install Lets Encrypt Certificate on Windows with Certbot
    Install Lets Encrypt Certificate on Windows with Certbot Web Server

More Related Articles

Wordpress How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER Web Server
http trace fiddler How to Disable HTTP TRACE Method for Apache, IIS, sunOne, and Lotus Domino Web Server
Secure Web Server How to secure a Web Server on a Windows VM in Azure using TLS/SSL Certificates Saved in Azure Key Vault AWS/Azure/OpenShift
http to https redirection URL Rewrite: How to redirect from HTTP to HTTPS Web Server
Azure VM Creation With CLI 1 Deploy a Linux virtual machine (VM) on Azure using the Azure CLI AWS/Azure/OpenShift
Install Lets Encrypt Certificate on Windows with Certbot Install Lets Encrypt Certificate on Windows with Certbot Web Server

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

Veeam Vanguard

  • How to create a dev drive
    How to create a Dev Drive on Windows 11 Windows
  • fba7f screenshot 2019 04 15 at 18.33.30
    File System Overview: How to decide on the right File System to use for your USB Linux
  • VMware workstation networking issues
    Network cable Unplugged: Fix VMware “Warning – Multiple default gateways are intended to provide redundancy to a single network Virtualization
  • Screenshot 2020 06 22 at 23.27.40 1
    Install MSSQL 2019 Developer Edition and SSMS on Windows Oracle/MSSQL/MySQL
  • Dockerize NodeJS Application
    Dockerizing a NodeJs Express Application Automation
  • Create your own Network on AWS from Scratch
    VPC, Subnet, NACL, Security Group: Create your own Network on AWS from Scratch [Part 2] AWS/Azure/OpenShift
  • Delete Slack Account
    How to delete your Slack account JIRA|Confluence|Apps
  • Windows10 SCCM 20161
    What is ADK, MDT, Microsoft Endpoint Configuration Manager (SCCM), Intune, Autopilot, and WSUS Windows Server

Subscribe to Blog via Email

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

Join 1,779 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

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.