I have an exchange server 2016 & its logging folder is getting filled up very quickly & huge in space. Is there anyway to cleanup- automatically & is is safe to cleanup
You can actually delete those files manually (not the folder), and it will not cause a problem, run the script will save you a ton of time.
Download the script and right click and select run with powershell, and thats it, you will watch as it deletes all those files. It can take a while if there is are alot of files so be patient it working.
There is always a way but it will take modifying the config files on each folder and the next time you run a CU update on exchange it will be enabled again. Not worth the trouble. Just run that script and you will be good. You can set the script to run as a scheduled task but that i definitely the easiest thing to do. Disregard disabling them because they will be needed for troubleshooting if something ever happens.
Akhater
Don't disable logging. As per my previous comment schedule the maintenance. You never know when you are going to need the logs
Do not clean manually. There are scrips available for cleaning up.