0X000019C8

Fix ERROR_LOG_SECTOR_INVALID (0x000019C8) on Windows Server

Server & Cloud Intermediate 👁 0 views 📅 Jul 15, 2026

The log service found a bad sector in a log file. It's usually a disk issue or corrupted log. Here's how to fix it step by step.

What actually triggers this error

You're opening Event Viewer on a Windows Server (2016, 2019, or 2022) and you get hit with ERROR_LOG_SECTOR_INVALID (0x000019C8). Or maybe a scheduled task or backup script logs this error. What's actually happening here is the Windows Log Service (the thing that writes event logs to .evtx files) found a sector in a log file that doesn't match its checksum. Could be a bad spot on the disk, could be the log file got corrupted mid-write during a power loss or crash. The OS refuses to read that log anymore because it can't trust the data. And it won't let you write to it either — the whole log is locked up.

Fix 1: Clear the specific log (30 seconds)

This is the fastest fix if you don't need the old log data. It works for a single corrupted log (like System or Application).

  1. Open Event Viewer (run eventvwr.msc).
  2. In the left pane, find the log that's showing the error. Usually it's Windows Logs > System or Application.
  3. Right-click that log and choose Clear Log....
  4. Click Save and Clear if you want to back it up, or Clear if you don't care.

The reason this works is simple — the log service just deletes the .evtx file and creates a fresh empty one. The corrupted sector is gone. If you see the error come back after a few hours, the disk itself is bad. Skip to Fix 3.

Clear all logs via command line

If Event Viewer won't even open, run PowerShell as Admin:

wevtutil el | ForEach-Object { wevtutil cl $_ }

This clears every event log on the machine. Fast, but you lose all logs. Good for a quick check.

Fix 2: Run CHKDSK to check the disk (5 minutes)

If clearing the log didn't work, or the error keeps popping up for different logs, the disk might have a physical bad sector. CHKDSK can mark those sectors as unusable so the log service won't try to read them again.

Open Command Prompt as Admin and run:

chkdsk C: /f /r

Replace C: with the drive where Windows is installed (or where the logs live, if they're on a separate partition). The /f flag fixes file system errors, /r finds bad sectors and recovers readable data.

You'll probably get a message saying the drive is in use and ask to schedule a check on next restart. Type Y and restart the server. CHKDSK runs before Windows fully boots, so the log files aren't locked.

After reboot, check Event Viewer again. If the error is gone, you're done. If CHKDSK reports lots of bad sectors, back up your data and replace the drive soon. A failing disk will only get worse.

What if CHKDSK can't fix it?

Sometimes the corruption is in a critical system log that CHKDSK can't touch while Windows is running. That's when you need the nuclear option.

Fix 3: Manually replace the corrupted .evtx file (15+ minutes)

This is the advanced fix. You're going to find the exact log file that's corrupted, rename it, and let the log service create a fresh one. Works even when Event Viewer won't launch.

Step 1: Find the corrupted log file

The logs are stored in:

C:\Windows\System32\winevt\Logs

Open that folder in File Explorer. Sort by Date modified. Look for a .evtx file with a recent timestamp that matches when the error started. Common ones: System.evtx, Application.evtx, Security.evtx. If you know which log fails (from the error message), pick that one.

Step 2: Stop the Windows Event Log service

You can't rename the file while it's in use. Open Command Prompt as Admin and run:

net stop EventLog

Wait a few seconds. The service stops, and the log files are no longer locked. If it fails to stop, check Services.msc and make sure no other process (like a backup tool) is using it.

Step 3: Rename or move the corrupted file

Back in the Logs folder, right-click the .evtx file, choose Rename, and add .old to the end. For example:

System.evtx → System.evtx.old

Or move it to a backup folder somewhere else if you want to keep it for analysis later. Do not delete it until you've confirmed the fix works.

Step 4: Restart the service

Back in the Command Prompt, run:

net start EventLog

The log service starts and immediately creates a brand new System.evtx (or whichever one you renamed). It's empty, but it works.

Step 5: Verify

Open Event Viewer again. The error should be gone. You'll see a fresh log with no entries except maybe a couple from the service starting. If you need old log data, you can open the renamed .old file by going to Action > Open Saved Log in Event Viewer and selecting it. But treat it as read-only — don't try to write to it.

What if none of these work?

If the error keeps coming back after replacing the file, your disk probably has a hardware failure. Run a full disk diagnostic tool from your server manufacturer (like Dell's DSET or HP's Smart Storage Administrator). Look for pending bad sectors in the S.M.A.R.T. data. Replace the drive if you find any.

Also check if your antivirus or backup software is locking the log files. Some aggressive tools can cause write conflicts that look like disk corruption. Temporarily disable them and see if the error stops.

One last thing: event log size limits

If you see this error frequently on a busy server, check the log size limits in Event Viewer. Right-click a log, choose Properties, and set a larger maximum size (like 20 MB instead of the default 1 MB). When a log file fills up and gets overwritten mid-write, corruption can happen. Keeping it larger reduces those overwrites.

Summary for the impatient: Try clearing the specific log first (30 seconds). If that fails, run CHKDSK (5 minutes). If still broken, stop the EventLog service, rename the .evtx file, restart the service (15 minutes). And if the error comes back, your disk is dying — replace it.

Was this solution helpful?