File Size Exceeds the Limit Allowed and Cannot be Saved

Trying to resolve an event log issue... running a script which should do it, but it returns the error:

"Unhandled Exception: System.ComponentModel.Win32Exception: The file size exceeds the limit allowed and cannot be saved."

The log file size is currently 68KB and the limit set at 4096KB.  Any thoughts on how to resolve this?  Thanks!
Dan CarpIT DirectorAsked:
Who is Participating?
Dan CarpConnect With a Mentor IT DirectorAuthor Commented:
Thanks Olemo - I'd been running the script as outlined in:

I was having an issue with an application which I was told would be related to my having cleared out the server's event logs, but I have since resolved the issue.
QlemoBatchelor and DeveloperCommented:
What exactly are you trying to do? Insert an EventLog entry with more than 31884 Bytes? Or store the complete EventLog as a file?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.