Moving IIS Log Files to another Drive on Server 2012

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
yaminz66Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

becraigCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VishalnarseSystem Wintel Administrator L2Commented:
0
yaminz66Author Commented:
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
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

yaminz66Author Commented:
Hi

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

Yamin
0
becraigCommented:
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
VishalnarseSystem Wintel Administrator L2Commented:
That great, I glade to help you, if you need any further assistance please me know.

Thank you.
0
yaminz66Author Commented:
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
VishalnarseSystem Wintel Administrator L2Commented:
You can try and change the path.
0
yaminz66Author Commented:
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
VishalnarseSystem Wintel Administrator L2Commented:
Can you please share the screenshot path change and old path.
0
yaminz66Author Commented:
The old path was - c:\inteput\logs\logfiles\

New path is - D:\inteput\logs\logfiles\
0
VishalnarseSystem Wintel Administrator L2Commented:
Yes you can delete with confirm that you have take the backup.
0
VishalnarseSystem Wintel Administrator L2Commented:
If you need more help on this you can share remote via teamviewer 9.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.