Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Event log exceeding maximum allowed count

Somehow, the Application Event log count ended up to 18,446,744,073,709,551,499. This causes MMC snap-in to fail when I want to see the event using Event Viewer, giving a System.OverflowException (Value was either too large or too small for an Int64.). Any thoughts, or should I just clear the log?

like image 283
misha Avatar asked Nov 03 '11 08:11

misha


People also ask

What is the maximum event log size?

A. 1 Configuring the Security Event Log Set the maximum size of the Security Event Log to no less than 10 MB, and set the retention method to Overwrite events as needed.

What is the maximum log size for application and system?

The maximum log file size can be configured between 1 megabyte (1,024 kilobytes) and 4 terabytes (4,194,240 kilobytes) in kilobyte increments. The recommended state for this setting is: Enabled: 32,768 or greater.

What can be used to limit the event log entries displayed in the event viewer?

The Limit-EventLog cmdlet sets the maximum size of a classic event log, how long each event must be retained, and what happens when the log reaches its maximum size. You can use it to limit the event logs on local or remote computers.


2 Answers

Maybe it helps if you activate the option to override old eventlogs when the log is full. This should prevent you from loosing the newest log entries when reaching the limit.

To activate navigate to your eventlog and go to their settings. There you find an option to override old entries if the log is full.

like image 86
LMW-HH Avatar answered Sep 30 '22 19:09

LMW-HH


Before clearing the Application log I first tried "Save All Events As...", but the file it produced was empty.

I then copied C:\Windows\System32\winevt\Logs\Application.evtx to my desktop and that file DID open correctly. Not great, but an acceptable work-around for my needs.

like image 29
Steve C Avatar answered Sep 30 '22 20:09

Steve C