Maximize your protection, eliminate business risks.
Optimize and modernize with cloud transformation.
Empower your people to work securely from anywhere.
Let us handle IT so you can focus on growing your business.
Get multichannel 24/7/365 expert end-user support.
Protect, detect, and respond—Dataprise keeps your business secure.
Maximize uptime with with industry-leading DRaaS.
Swiftly mitigate cyber threats and restore security.
Improve efficiency, productivity and outcomes with cloud.
Ensure all mobile devices, everywhere, are secure.
Gain a competitive edge with strategic IT solutions.
This battle-tested checklist enables your team to swiftly initiate a ransomware response.
IT for businesses of all sizes, in any industry.
Empower institution growth with custom IT solutions.
Ensure your firm is always in compliance.
Improve patient care and staff morale.
Deal with pressing legal matters, not IT.
Keep up with the evolving digital landscape.
Focus on your mission by outsourcing IT.
Keep production running with secure, always-on IT.
Accelerate PE client deals and secure data.
Empower Your Municipality with Secure, Reliable IT Services
Execute initiatives and develop IT strategies.
Get the latest industry insights and trends.
Join us at events in person and online.
Hear from clients and learn more about strategic IT.
See how Dataprise can make IT your greatest asset.
Get informative technical resources from IT experts.
Stay on stop of emerging cybersecurity threats.
Discover the key areas of DR your organization needs to address to ensure downtime is minimized.
Gain a strategic asset by bringing harmony to IT.
Ensure 24/7 support and security with dedicated teams.
Drive business forward by partnering with Dataprise.
Meet our one-of-a-kind leadership team.
Discover the recognition Dataprise has earned.
Help us help businesses with strategic IT.
Grow through acquisition and partnership with Dataprise.
Embracing different perspectives and backgrounds.
Find a Dataprise location near you.
Dataprise is committed to empowering more women to consider a career in technology.
Explore our trusted partnerships with leading tech innovators.
Posts
By: Dataprise
Table of content
Exchange 2013 adds a substantial number of logs to help aid in diagnostics, transport troubleshooting, OWA, etc. These logs are stored by default in “C:Program FilesMicrosoftExchange ServerV15Logging”.
While this is great for day to day operations and system health, it can be a detriment to organizations with disk space budgets. Generally in this day and age of cheap storage this isn’t an issue (and Microsoft recommends at least 30GB for the drive location that Exchange is installed on partly because of this) however you may come across a need to move these logs. Some can be moved quickly and easily, but others have no fast way to move them.
To get them all moved off the system drive, first tackle the easy ones using an Exchange Management shell command:
Get-TransportServer | foreach {
Set-TransportServer -MessageTrackingLogPath “S:LogsMessageTracking”
Set-TransportServer -ConnectivityLogPath “S:LogsConnectivity”
Set-TransportServer -IrmLogPath “S:LogsIRMLogs”
Set-TransportServer -ActiveUserStatisticsLogPath “S:LogsActiveUserStats”
Set-TransportServer -ServerStatisticsLogPath “S:LogsServerStats”
Set-TransportServer -ReceiveProtocolLogPath “S:LogsProtocolLogSmtpReceive”
Set-TransportServer -RoutingTableLogPath “S:LogsRouting”
Set-TransportServer -SendProtocolLogPath “S:LogsProtocolLogSmtpSend”
}
The above command will move these eight log paths for all the transport servers in your Exchange organization, so if you plan to move only one server, or if your target log paths are different for each server, you will have to issue the command differently:
Get-TransportServer – %servername% {
Set-TransportServer -MessageTrackingLogPath “S:ExchangeLogsMessageTracking”
Set-TransportServer -ConnectivityLogPath “S:ExchangeLogsConnectivity”
Set-TransportServer -IrmLogPath “S:ExchangeLogsIRMLogs”
Set-TransportServer -ActiveUserStatisticsLogPath “S:ExchangeLogsActiveUserStats”
Set-TransportServer -ServerStatisticsLogPath “S:ExchangeLogsServerStats”
Set-TransportServer -ReceiveProtocolLogPath “S:ExchangeLogsProtocolLogSmtpReceive”
Set-TransportServer -RoutingTableLogPath “S:ExchangeLogsRouting”
Set-TransportServer -SendProtocolLogPath “S:ExchangeLogsProtocolLogSmtpSend”
Where %servername% is your exchange server.
Next, the more difficult to move logs. Unfortunately this method will require you to stop your Exchange services so it will release the file lock on the logging directory and log files so plan an appropriate outage window.
After you have stopped all Exchange Services, from an elevated administrator command prompt, type these commands:
cd C:Program FilesMicrosoftExchange ServerV15
rename logging logging-old
mklink /D C:Program FilesMicrosoftExchange ServerV15Logging > S:ExchangeLogs
xcopy /E /I logging-old s:Exchangelogs
This set of commands will rename the current log directory, then create a junction link to your new path, and finally copy the old subdirectories and log files to the new location.
Using the mklink command will allow Exchange to continue logging to what it believes it the default directory, but it is really linked to your new path, in this example on the dedicated S drive.
You can now start your exchange services and verify the logs are going to the new location, then delete the “logging-old” directory and reclaim your system drive space.
Joe Hanning, PEI
INSIGHTS
Subscribe to our blog to learn about the latest IT trends and technology best practices.