Author Topic: Clear Event Viewer  (Read 10830 times)

0 Members and 1 Guest are viewing this topic.

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Clear Event Viewer
« on: November 18, 2011, 07:35:41 PM »
Hi Shane,

Do you feel that a tool to completely clear the Windows Event Viewer would be useful at all?  I came across it while googling for a way to clear the event viwer, used it and it worked great and really fast.

Thanks,
Rusty

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: Clear Event Viewer
« Reply #1 on: November 19, 2011, 01:05:55 PM »
I just do it manually. :wink:

Right click on the event viewer and click clear.

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: Clear Event Viewer
« Reply #2 on: November 19, 2011, 01:42:26 PM »
Not sure what OS you're referring to but in Win7 there is no manual way to do it.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: Clear Event Viewer
« Reply #3 on: November 19, 2011, 01:44:34 PM »
Sure you can :wink:

Here is a screen shot from my system.

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: Clear Event Viewer
« Reply #4 on: November 19, 2011, 01:46:13 PM »
Oh I'm not referring to JUST the windows log files.  I'm talking about clearing the entire Event Viewer, not just one little part of it.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: Clear Event Viewer
« Reply #5 on: November 19, 2011, 01:48:44 PM »
Yeah you just right click on each part you want to clear is all.

Keep in mind Windows only keeps the event viewer to a max size. When it gets to that size it will start removing old entries. So it never grows out of control on you. I think it is 512 kb?
http://technet.microsoft.com/en-us/library/bb726966.aspx

Quote
Log options allow you to control the size of the event logs as well as how logging is handled. By default, event logs are set with a maximum file size of 512 KB. Then, when a log reaches this limit, events older than seven days are overwritten to prevent the log from exceeding the maximum file size.

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: Clear Event Viewer
« Reply #6 on: November 19, 2011, 01:49:23 PM »
Try clearing the Administrative Events manually.  :wink:

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: Clear Event Viewer
« Reply #7 on: November 19, 2011, 01:53:27 PM »
Alot of the tools you have included in WR have manual ways to do the same thing, so not sure what your point is.  I just thought I would let you know of a tool to automatically clear the ENTIRE event viewer very quickly, that's all.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: Clear Event Viewer
« Reply #8 on: November 19, 2011, 02:00:53 PM »
Not fighting with you lol.

A lot of the repair tools in my program are not default in windows. The permissions repair needs a program from Microsoft to do it, and a lot of the repairs are bat file scripts I made. Those aren't default in windows. In fact none of the repairs are default in windows, not sure why I have seen multiple people say they are tools already in Windows lol. They are all scripts that are made, but any one can make them, so nothing special about them.

But clearing the event log isn't a repair is all. But I could always make a small tool to do it like I have so many others :-)

Then people who need it like your self can use it. :wink:

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: Clear Event Viewer
« Reply #9 on: November 19, 2011, 02:04:05 PM »
Wouldn't be to hard to make, here is a vbscript file that should work

strComputer = "."
Set oWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Security)}!\\" & _
strComputer & "\root\cimv2" )
Set cLogFiles = oWMIService.ExecQuery _
("SELECT * FROM Win32_NTEventLogFile" )
For Each oLogfile in cLogFiles
oLogFile.ClearEventLog()
Next

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: Clear Event Viewer
« Reply #10 on: November 19, 2011, 02:40:25 PM »
Not fighting with you lol.

A lot of the repair tools in my program are not default in windows. The permissions repair needs a program from Microsoft to do it, and a lot of the repairs are bat file scripts I made. Those aren't default in windows. In fact none of the repairs are default in windows, not sure why I have seen multiple people say they are tools already in Windows lol. They are all scripts that are made, but any one can make them, so nothing special about them.

But clearing the event log isn't a repair is all. But I could always make a small tool to do it like I have so many others :-)

Then people who need it like your self can use it. :wink:

Shane

Well, removing temp files is not a repair either, but it is part of WR.  :confused:

It was just an idea I had when I came across the tool online.  Including it in WR is certainly not important.   However, as I said above there is no manual way to COMPLETELY clear the entire event viewer including the Admin Events.  So, maybe it would be better to just not use it at all.  There already is a tool readily available for this online anyway.
« Last Edit: November 19, 2011, 02:47:40 PM by friedmonky »

 

anything