microsoft:exchange_2013_delete_logs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
microsoft:exchange_2013_delete_logs [2021/10/25 10:40]
admin created
microsoft:exchange_2013_delete_logs [2021/10/25 10:46] (current)
admin
Line 4: Line 4:
  
 Logs are great when you need more information and want to have a look into it when you are having issues. Exchange Servers are filling up easily with all these logs. The best way is to clear the logs because you need to free up some size on the disk. The script in this article is my edit to the original script from Edward van Biljon. You can download the official script from Microsoft Technet. Logs are great when you need more information and want to have a look into it when you are having issues. Exchange Servers are filling up easily with all these logs. The best way is to clear the logs because you need to free up some size on the disk. The script in this article is my edit to the original script from Edward van Biljon. You can download the official script from Microsoft Technet.
- 
- 
-Table of contents 
-Prepare the cleanup logs Exchange script 
-Run the cleanup logs Exchange script 
-Before running the cleanup logs script 
-After running the cleanup logs script 
-Conclusion 
  
 ===== Prepare the cleanup logs Exchange script ===== ===== Prepare the cleanup logs Exchange script =====
Line 66: Line 58:
 Give your account permission access to the below four folders. If the script does not have permission, it will not cleanup logs in that folder. I recommend making a service account in Active Directory. Give the service user account read/write permission on the below four folders. Create a scheduled task to clear Exchange logs that will run every day with the service user account. Give your account permission access to the below four folders. If the script does not have permission, it will not cleanup logs in that folder. I recommend making a service account in Active Directory. Give the service user account read/write permission on the below four folders. Create a scheduled task to clear Exchange logs that will run every day with the service user account.
  
 +<code sql>
 C:​\inetpub\logs\LogFiles\ C:​\inetpub\logs\LogFiles\
 C:\Program Files\Microsoft\Exchange Server\V15\Logging\ C:\Program Files\Microsoft\Exchange Server\V15\Logging\
 C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces\ C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\ETLTraces\
 C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs\ C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\Diagnostics\Logs\
 +</​code>​
  
 ===== Run the cleanup logs Exchange script ===== ===== Run the cleanup logs Exchange script =====
Line 75: Line 69:
 Before running the cleanup logs script Before running the cleanup logs script
 Before you run the script, have a look at how much free space you have on the drive. See the before cleanup screen. Before you run the script, have a look at how much free space you have on the drive. See the before cleanup screen.
 +
 +{{ :​microsoft:​clean-up-logs-exchange-before-cleanup-logs1.png |}}
  
 ===== Clean up logs Exchange before cleanup ===== ===== Clean up logs Exchange before cleanup =====
Line 85: Line 81:
  
 ===== Clean up logs Exchange after ===== ===== Clean up logs Exchange after =====
 +
 +{{ :​microsoft:​clean-up-logs-exchange-after-cleanup-logs2.png |}}
  
 The script did cleanup 14GB of the Exchange logs. Did the cleanup logs Exchange script help you out? The script did cleanup 14GB of the Exchange logs. Did the cleanup logs Exchange script help you out?
microsoft/exchange_2013_delete_logs.1635151219.txt.gz · Last modified: 2021/10/25 10:40 by admin