Quantcast
Channel: martinsblog.dk
Viewing all articles
Browse latest Browse all 320

Exchange 2013 & 2016: System logs = Disk getting full

$
0
0

On Exchange 2013 and 2016, you can often see that the logging directory is growing, maybe too fast for your storage.

You can circumvent this, by implementing this script in task scheduler and running via Powershell:

gci ‘c:\Program Files\Microsoft\Exchange Server\V15\Logging’,’C:\inetpub\logs’ -Directory | gci -Include ‘*.log’,’*.blg’ -Recurse | ? LastWriteTime -lt (Get-Date).AddDays(-7) | Remove-Item

This one will delete all Exchange and IIS logs older than 7 days.

Source: https://social.technet.microsoft.com/Forums/exchange/en-US/5b9dd872-5803-4dae-83d1-584424b7bd94/exchange-2013-system-logs-disk-getting-full?forum=exchangesvradmin

 


Viewing all articles
Browse latest Browse all 320

Trending Articles