The 30-Second Fix: Clear the Corrupted Log
This is the first thing you try. It works most of the time when the error just popped up after a crash or forced shutdown.
- Press Windows Key + R, type
eventvwr.msc, hit Enter. Wait for Event Viewer to load — if it errors out right away, skip to the next section. - In the left panel, expand "Windows Logs". Right-click "Application", pick "Clear Log...".
- A dialog pops up: "Do you want to save... before clearing?" Click Don't Save. This deletes the corrupt metadata file.
- Do the same for "System" and "Security" logs if they're also showing errors.
- Close Event Viewer, reopen it. If you don't see the error again, you're done. The log service creates fresh metadata files automatically.
What to expect: After clearing, the error should vanish. You'll lose past log entries, but that's better than a broken logging system.
5-Minute Fix: Delete the Log Files Manually (Works When Event Viewer Won't Open)
If Event Viewer crashes or won't open, the log files themselves are corrupt. We delete them directly.
- Open Command Prompt as Administrator: Press Win + X, click "Terminal (Admin)" or "Command Prompt (Admin)".
- Stop the Event Log service with this command:
After you press Enter, wait a few seconds. You should see: "The Windows Event Log service was stopped successfully."net stop eventlog - Now delete the log files. Run:
This removes all .evtx files — Application, System, Security, and others.del /f /q %SystemRoot%\System32\winevt\Logs\*.evtx - Start the service again:
You'll see "The Windows Event Log service was started successfully."net start eventlog - Open Event Viewer again. New clean log files get created the moment something logs an event. The error should be gone.
Pro tip: On Windows Server, you might have more logs like DNS or DHCP. The same command wipes all of them. That's fine — they rebuild.
15+ Minute Fix: Rebuild the Event Log Service (When Corruption Won't Go Away)
If the error comes back after a reboot, or if the service won't start at all, the metadata files are damaged beyond simple deletion. You need to rebuild the service database.
Step 1: Stop the Service and Delete Everything
- Open Command Prompt as Admin again.
- Stop the service:
net stop eventlog - Go to the logs folder:
cd %SystemRoot%\System32\winevt\Logs - Delete all files in that folder:
Then also delete the metadata files:del *.evtx /f /q
(The .log files here are internal metadata, not your system logs.)del *.log /f /q
Step 2: Reset the Service Registry Keys (Rarely Needed, But Powerful)
- Still in Command Prompt, open Registry Editor:
regedit - Go to this key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog - Right-click the "EventLog" folder, choose "Export" to back it up. Save it somewhere safe.
- Now, right-click each subkey (like "Application", "System", "Security") and delete them. Only delete the subkeys, not the main EventLog key.
- Close Registry Editor.
- Start the service:
It may fail because the subkeys are missing. That's okay.net start eventlog - Reboot the computer. Windows re-creates the default subkeys and log files automatically during boot.
Step 3: Verify It Worked
- After reboot, open Event Viewer. You should see empty logs for Application, System, and Security.
- Check the error is gone by looking at the System log — there should be no 0xC01A000D entries.
What causes this in the real world: I see this most often on Windows Server 2016 and 2019 after unexpected power loss on a VM host. The hypervisor snapshots the VM mid-write, and the log metadata gets scrambled. The quick delete fix in section one almost always works. The registry rebuild is for when IT guys have been messing with log permissions or antivirus locked the files.
One More Thing: Check Disk for Errors
If the corruption keeps coming back, your disk might have bad sectors. Run this from Admin Command Prompt:
chkdsk C: /f
You'll need to schedule it for next reboot. Type Y, then restart. Chkdsk might fix underlying disk issues that keep corrupting log metadata.
That's it. Start with the 30-second fix. Move up only if you need to. Most people are done after clearing the logs.