Windows Server 2003 Event Viewer Application Event Log File Corrupt

I have a Windows Server 2003 R2 server which is coming up with an error when i try to check the application logs in event viewer.  The Error i get is "The event log file is corrupt".  The server has SP2 installed, any help is appreciated

Thanks in advance.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose TorresCertified Database AdministratorCommented:
If you have a backup restore the file
In 2003 the event viewer files should be in C:\WINDOWS\system32\config
Note: for the following, the security policy "Audit: Shut down system immediately if unable to log security audits" may not be enabled (by default, it isn't)!
1. Start eventvwr.msc, open the properties of the Application event log and verify the physical log file location; IIRC, default should be "C:\Windows\system32\config\AppEvent.Evt".
2. Start services.msc, set the startup type of the "Event Log" service to "Disabled".
3. Reboot the server.
4. Rename the file identified in step 1 to AppEvent.Evt.old or whatever.
5. Start services.msc, set the startup type of the "Event Log" service back to "Automatic".
6. Reboot the server.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IMImobileAuthor Commented:
Thanks for the solutions a quick question though.  Could i use AppEvent.Evt from another machine and replace on the problem one?
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Even if it would work, what would you gain from having another machine's application event log on this one?
The procedure I described above will notice that the file is not there, and simply create a new one.
The restarts are required because the event log service keeps the files open, and can't be stopped on a running system.
Jose TorresCertified Database AdministratorCommented:
oBdA is correct.  Remember the even viewer holds events which were logged on that server so it would serve no purpose to replace it with that.  If you need to restore the event viewer file from a backup thats not corrupt i can see a reason for that.
IMImobileAuthor Commented:
Thanks oBdA everything worked as you said it would
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.