Windows 10 is thought for performing up every so often with a number of varieties of errors. Now, you might have considered trying to get a deeper understanding of the errors, and that’s the place the Event Log comes into play. Event Log recordsdata principally retailer all data concerning previous errors on your viewing pleasure, and that’s nice. The downside is, the Event Log at occasions doesn’t mechanically take away all the data it shops, and that may be an issue on your laptop’s efficiency.
To repair this, customers should manually clear the Event Log, and what? Most laptop customers do not know of how to do that. Worry not, we’re going to enable you to by the total course of, and after we’re finished, you’ll be a grasp.
How to clear the Event Log in Windows
This submit exhibits you ways to clear the Event Log recordsdata through the Event Viewer UI or the Command line. You can delete all or chosen even log recordsdata additionally out of your Windows/Server, by following the steps laid down in this tutorial.
1] Delete the Event Log utilizing the Event Viewer
Click on the Start button then sort Event Viewer. When you see the icon, right-click on it and choose Run as Administrator to launch the Event Viewer. Finally, double-click on the folders in the left pane, right-click on the occasions you need to have deleted after which select Clear Log. This will all log recordsdata for that part. You can also choose a log file after which click on on Clear log which you see on the proper aspect panel.
2] Clear chosen Event logs utilizing the Command Prompt
Personally, I like to use the Command Prompt as an alternative of the common methods of doing issues. In that case, we’re going to speak about how to clear the Event Log utilizing the Command Prompt earlier than referring to the different choice.
Click on the Start button, then sort “cmd.exe” and from there you’ll see the CMD icon. Right-click on the icon then choose Run as Administrator to fireplace up the Command Prompt.
The subsequent step, then, is to sort “wevtutil el” into the newly opened Command Prompt window and ensure to do that with out the quotes. Click the Enter key in your keyboard and in a second you need to see a listing of all the error logs.
Finally, sort wevtutil cl + the title of the log you need to take away. This choice permits you to clear solely the ones you don’t want, so don’t go in anticipating it to clear the whole lot at the identical time.
wevtutil is a built-in instrument that permits you to retrieve details about occasion logs and publishers. You may also use this command to set up and uninstall occasion manifests, to run queries, and to export, archive, and clear logs. You can learn extra about this instrument on docs.microsoft.con.
three] Remove Event Log recordsdata utilizing CMD
To clear the whole lot, launch the Notepad software program then copy and paste the following piece of data which has been sourced from MSDN:
@echo off FOR /F “tokens=1,2*” %%V IN (‘bcdedit’) DO SET adminTest=%%V IF (%adminTest%)==(Access) goto noAdmin for /F “tokens=*” %%G in (‘wevtutil.exe el’) DO (name :do_clear “%%G”) echo. echo Event Logs have been cleared! goto theEnd :do_clear echo clearing %1 wevtutil.exe cl %1 goto :eof :noAdmin
Be certain to save the information as a .CMD file, then lastly, right-click on the saved file and choose Run as Administrator. From there, the Command Prompt ought to launch by itself, and all you want to do is permit it to end doing its stuff.
Hope this helps!