windows 应用程序事件日志超过最大允许计数
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7991826/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Application Event log exceeding maximum allowed count
提问by misha
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?
不知何故,应用程序事件日志计数最终达到 18,446,744,073,709,551,499。当我想使用事件查看器查看事件时,这会导致 MMC 管理单元失败,给出 System.OverflowException(值对于 Int64 来说太大或太小。)。有什么想法,还是我应该清除日志?
采纳答案by LMW-HH
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.
要激活导航到您的事件日志并转到其设置。如果日志已满,您可以在那里找到覆盖旧条目的选项。
回答by Steve C
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.
然后我将 C:\Windows\System32\winevt\Logs\Application.evtx 复制到我的桌面,并且该文件 DID 正确打开。不是很好,但可以满足我的需求。