Problem solve Get help with specific problems with your technologies, process and projects.

Is it safe to delete Exchange 2010 log files?

One admin wants to know if it's a smart idea to delete Exchange 2010 log files. To put it simply, it's not, and here's why.

I have an Exchange 2010 server that contains numerous log files. Is it safe to delete the log files, and if so, should I back them up prior to deletion?

Well, it's always smart to back up any type of file before you delete it. That said, I don't think it's wise to delete Exchange 2010 log files.

Exchange Server 2010 stores messages in a mailbox database. However, when a new message arrives, it is not immediately written to the mailbox database. Instead, the message is written to a transaction log. When a backup is made, the contents of the transaction log files are committed to the mailbox database.

You must hold on to Exchange 2010 log files because they help with disaster recovery. When you restore a backup of an Exchange mailbox database, you're essentially restoring the server to an earlier point in time.

transaction logs contain copies of every message that has come in since the time the backup was made. Exchange 2010 uses the contents of these log files to bring the database back to a current state after the backup has been restored. As you can see, it is very important to protect the log files.

You should always store log files on a separate physical disk from the mailbox database whenever possible. That way, if you lose a volume that contains a mailbox database, you will not lose the transaction logs as well.

About the author:
Brien Posey is an eight-time Microsoft MVP with two decades of IT experience. Before becoming a freelance technical writer, Brien was CIO for a national chain of hospitals and health care facilities. He also served as network administrator for some of the nation's largest insurance companies and for the U.S. Department of Defense at Fort Knox.

Dig Deeper on Exchange Server setup and troubleshooting