Jump to content

Editing large log files on a full disk


Recommended Posts

I've been trying to troubleshoot an application on a Win2008 server which once in a blue moon suddenly writes hundreds of GB of data into one of its log files over a short period of time. That crashes the application and uses up the entire disk it is installed on except for maybe 2 GB space left.

The problem is that, without looking at the file, I can't tell what caused the problem in the application. However, there's no way notepad, wordpad, or any other text software I know of will be able to open that log file. We can just delete the log and restart the application and it'll work fine for another month, but that's not a long term solution.

There's not enough room on C: or any other disk/network disk/external disk available to copy the file to. You can't zip it (since zip keeps the original copy and then makes an additional zipped one) and most file splitting utilities are the same.

Now on Linux or Unix, I think you'd still be able to tail and look at the end of the file without having to try and load the whole thing into memory. Is there some application out there that can do the equivalent available for Windows? Or maybe just chop off the last 1-10 MB of the log file?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy