C: drive free space keeps shrinking on Excange 2016 CU1

We have two Exchange 2016 CU1 servers in DAG.   C: drive free space keeps shrinking on both servers. I have extended the 40 GB space and after 4 to 6 days now only 9 GB is left and almost 30 GB space has been consumed.

The mailbox database and database logs folders are on other separate drives. Only Exchange is installed in C drive.  Can you please guide me how I can cater this case? if it is normal then please let me know what kind of logs consuming this space repidly.
LVL 2
Muhammad AsifSenior Solutions ArchitectAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Dr. KlahnPrincipal Software EngineerCommented:
Well, first you need to find out what is using up the space, then you can decide how to address it.  WinDirStat would be a good tool to start looking around to see where the space is going.  

https://windirstat.net/

Personally I prefer OverDisk, but it is getting to be rather long in the tooth now and may not work on 64-bit systems.

Overdisk in use
Find the huge directory, then find the huge files, once you know that then we can give you advice on how to proceed.
Sam Simon NasserIT Support ProfessionalCommented:
try glarysoft cleaner https://www.glarysoft.com/disk-cleaner/ for free
maybe their is windows update or other software that is eating the drive.
Dr. KlahnPrincipal Software EngineerCommented:
I *very strongly* advise against using any "system optimizer" or "disk cleaner" on a server, even if there is a full backup available.  A shotgun solution on a server should remain as the very last resort; too many things can go wrong.

Discover what the specific problem is first, then address it.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

MASEE Solution Guide - Technical Dept HeadCommented:
Hi Muhammed Asif
What is your free size as of now?
Please read my comment on this how to move logs
https://www.experts-exchange.com/questions/29079465/How-do-I-change-the-default-drive-where-new-exchange-2016-database-are-created.html#a42441990
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
Hi Everyone,

Thanks to all for comments.  I have managed to find the problem. The Kaspersky antivirus is installed on the server and it is generating to much logs.

BTW, what is the normal size of IIS logs which are generated by Exchange? Can you please let me know the directories where Exchange generates logs of like active sync , ews and other IIS logs?
IvanSystem EngineerCommented:
Hi,

those logs are usually on C:\inetpub\logs\LogFiles. On my Exchange 2013, with 50 users, I get around 1Gb per day.
Created a script that deletes them after 1 month, so they don't use to much space.

Regards,
Ivan.

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
Muhammad AsifSenior Solutions ArchitectAuthor Commented:
Hi Ivan,

Thanks for your reply . Can you please share the script here so we may use it as well? Moreover, can we use the same script for Exchange 2016 as well on Windows server 2016?
IvanSystem EngineerCommented:
Hi,

here is a simple vbscript that I use. Modify location of logs and days that you want to keep logs after script is run. In this case logs that are up to 30 days old are not deleted.
Save text as vbscript, and configure scheduled task to run when you want it, like once per month or more..

sLogFolder = "c:\inetpub\logs\LogFiles"
iMaxAge = 30   'in days
Set objFSO = CreateObject("Scripting.FileSystemObject")
set colFolder = objFSO.GetFolder(sLogFolder)
For Each colSubfolder in colFolder.SubFolders
        Set objFolder = objFSO.GetFolder(colSubfolder.Path)
        Set colFiles = objFolder.Files
        For Each objFile in colFiles
                iFileAge = now-objFile.DateCreated
                if iFileAge > (iMaxAge+1)  then
                        objFSO.deletefile objFile, True
                end if
        Next
Next
MASEE Solution Guide - Technical Dept HeadCommented:
BTW you can change the IIS logging path.
IIS.jpg
This will help you configure IIS log file path, IIS log period, Local time filename and rollover configuration.
https://gallery.technet.microsoft.com/office/Change-IIS-Log-File-e4bd3f4b

Hope this helps.

MAS
Rick WhiteheadIT CoordinatorCommented:
If it's the same drive as your mailbox data store I would check the log files. Log files build up and will take up space.
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
Storage

From novice to tech pro — start learning today.