Solved

Moving IIS Log Files to another Drive on Server 2012

Posted on 2014-09-24
13
977 Views
1 Endorsement
Last Modified: 2014-09-24
Hi

I have a exchange mail server that is running low on disk space. I would like to move the logfiles to D drive from the current C drive (%SystemDrive%\inetpub\logs\LogFiles).  Can I just change the setting and restart the IIS Admin?  Will it move the current log files? If not can I delete them too?

Regards

Yamin
1
Comment
Question by:yaminz66
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
  • 2
13 Comments
 
LVL 29

Accepted Solution

by:
becraig earned 167 total points
ID: 40341010
Here are some steps on doing this, also applicable in later versions of IIS no restart is needed, but you can safe run:
iisreset /noforce


http://exchangeserverpro.com/change-log-file-directory-iis7/
0
 
LVL 4

Assisted Solution

by:Vishalnarse
Vishalnarse earned 333 total points
ID: 40341029
0
 

Author Comment

by:yaminz66
ID: 40341039
Hi

thank you - both responses are great. I had a feeling this would be matter of simply pointing to a new drive, but wanted to be certain.

Yamin
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:yaminz66
ID: 40341042
Hi

I will do the move tonight, as users are on the system now.

Yamin
0
 
LVL 29

Expert Comment

by:becraig
ID: 40341043
Sounds great, happy to be able to help, you can change the logs at any point and then move them later.

There is no requirement for users to be offline in order to accommodate this.
0
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40341062
That great, I glade to help you, if you need any further assistance please me know.

Thank you.
0
 

Author Comment

by:yaminz66
ID: 40341273
HI

The system went down again so I have been forced to change the directory to the new drive.

As for the old log files can I just move them or delete them

Regards

Yamin
0
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40341301
You can try and change the path.
0
 

Author Comment

by:yaminz66
ID: 40341305
Hi

Yes I have changed the path - but the old log files are still taking up space on the old drive. I am asking about those - can I delete them? I have moved them to the new drive in a different directory, as time was short.

Regards

Yamin
0
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40341307
Can you please share the screenshot path change and old path.
0
 

Author Comment

by:yaminz66
ID: 40341313
The old path was - c:\inteput\logs\logfiles\

New path is - D:\inteput\logs\logfiles\
0
 
LVL 4

Assisted Solution

by:Vishalnarse
Vishalnarse earned 333 total points
ID: 40341314
Yes you can delete with confirm that you have take the backup.
0
 
LVL 4

Expert Comment

by:Vishalnarse
ID: 40341318
If you need more help on this you can share remote via teamviewer 9.
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question