Solved

Moving IIS Log Files to another Drive on Server 2012

Posted on 2014-09-24
13
870 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

My GPO's made for 2008 R2 servers were not allowing me to RDP into a new 2012 server by default.  That’s why I tried to allow RDP via Powershell, because I could log into a remote shell without further configuration. Below I will describe how I wen…
What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
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 of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

815 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now