• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

What are the log files for in the First Storage Group folder in Exchange 2007?

Hello Experts:

I have a huge amount of log files in the folder called First Storage Group for Exchange 2007.  My question is what are they for and can they be deleted?

2 Solutions
They are transaction log files.  They are usually deleted when a full backup occurs.  Here is an article that explains it in depth.

TO answer your question on whether they can be Deleted - the answer is NO.
Do a backup of the database using an Exchange aware backup and they will be flushed.
If you are intending to never backup the server then you can enable circular logging which will keep them down to a minimum. However do note that circular logging basically leaves you with no data recovery options in the event of a database failure.

huntersp3Author Commented:
Hello Experts:

Thanks for the answers.  I found this script and ran it on the exchange server and it solved the problems with the logs and regained my disk drive space.  I wanted to share it with the community.

$temp = (eseutil /mk "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\E00.chk")[13]
$Bottom_Log_File = $temp.remove($temp.IndexOf(",")).remove(0,$temp.IndexOf("x")+1)
Get-ChildItem "C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group" | Where-Object { $_.Name.Length -eq 15 -AND $_.Name -like "E00*.log" -AND $_.Name.Substring(3+8-$Bottom_Log_File.length,$Bottom_Log_File.length) -lt $Bottom_Log_File } | foreach($_) {remove-item $_.fullname}
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now