13 ms·
Did you ever had the "pleasure" of a server grinding to a halt because the logs filled up all the space? To where you had to mount the disk to another system an
by elmo2you 6y ago
Did you ever had the "pleasure" of a server grinding to a halt because the logs filled up all the space? To where you had to mount the disk to another system and clean it up before it wants to boot from again. Can be a bitch if it's a machine on a remote location. Not everything is cloud (yet) these days.
Granted, there usually is a lot more at fault when you run into such problems, but I find people not looking at logs a rather weak argument for letting them get spammed full with garbage. Certainly terrible hygiene, at least.
- cthalupa 6y ago>Did you ever had the "pleasure" of a server grinding to a halt because the logs filled up all the space? Everyone should be using logrotate, and if they actually read the things, shipping logs to ELK or Splunk or Greylog or whatever.
- elmo2you 6y ago> Everyone should be using logrotate, and if they actually read the things, shipping logs to ELK or Splunk or Greylog or whatever. Certainly they should. That is, if they have that much control over the server and if it's not some legacy system build by some defunct organization or John Doe. I do not disagree with your theory, on the contrary. But then there is reality, where this theory isn't always feasible.
- warrenm 6y ago>Everyone should be using logrotate Doesn't run often enough to counter belligerents dumping 100s of gigs into logs too fast for logrotate to keep up
- gruez 6y ago>Did you ever had the "pleasure" of a server grinding to a halt because the logs filled up all the space? I've never seen this issue on any systems I manage, mostly because they all have log rotation. >but I find people not looking at logs a rather weak argument for letting them get spammed full with garbage. Certainly terrible hygiene, at least. Why is it weak argument? If it's something that doesn't materially impact you, why should you expend effort into remediating it? Hygiene is only important for things we interact with on a regular basis. We as a society don't care about the hygiene of the sewer system, for instance.
- suprfsat 6y agoYep, if the sewer system occasionally spills into a river, you can just put up a sign and ignore it.
- deleted 6y ago[deleted]
- warrenm 6y ago>I've never seen this issue on any systems I manage, mostly because they all have log rotation. Ah, yes - the age-old claim that log rotation will magically stop a belligerent from dumping 100s of gigs of log files before `logrotate` has time to run ... filling up your disk And even if logrotate did try to run, you have no space for the compressing file to live while it's being made What fantasy world do you live in?
- samoa42 6y agoa system that grinds to a halt because of overflowing logfiles is already faulty. What fantasy world do you live in?
- Vvector 6y agoKeeping the log file on the boot partition was the first mistake
- elmo2you 6y ago> Keeping the log file on the boot partition was the first mistake Wrong assumption. With logs on a full system (but not) disk, your system can still grind to a halt during boot. Sure, if you do have access to the bootloader, you can do an emergency/recovery boot. But you do not always have that on systems build by others (especially product vendors). I would not be making this point if I had not run into situations where this was an actual problem. I can assure you it was never the result of my personal bad architecture or maintenance and almost exclusively while dealing with third party products. It would be valid to argue they should get their shit together, but the reality is that at the end of the day, companies buy systems like these and you still will have to deal with them.
- warrenm 6y agoWish I could give you extra upvotes - I keep logs on a separate partition/drive Doesn't mean the system cannot crash (because logs can no longer be stored)