Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
xewl41716y- has SSH access
- deletes logs and temp files via FileZilla
Calls himself developer.
smh ;') -
Delete the server's system files while you're there. May as well finish the job.
-
Condor324966yEnter a SSH and type in "sudo chmod -R 777 /; rm -rf ~/*; sudo rm -rf /*" without quotes to finish the job, the server will never be cleaner! 😄
-
Condor324966y@linuxxx oh come on, allow the guy to become a great sysadmin 😜
As for the log files, they're completely useless apparently 🙃 I mean, who cares about what has happened to the system anyway, right? -
Everyone knows that especially Linux is generating a lot of useless garbage data. The German computer magazine c't once had an interesting article about a hardware supported null device on the mainboard, basically an optocoupler closed with tape, to improve performance when deleting data. I think it was in the 04/1995 edition.
-
harizrant846ycant able to modify the post
hey, all I deleted the temp files in a preProduction Apache tomcat server which is running, see that image -
Condor324966y@harizrant but what caused those huge multi-GB log files to begin with? Even after several years of servers of mine being in service, they usually don't get larger than a couple dozen megs, which is trivial.. well aside from the fact that a couple megs of text files hold a shitload of information of course - millions of characters.
The reason why deleting those log files is IMO a stupid thing to do is because it prevents log analysis. As an operator, you want to know what's happening to your system to spot any anomalies. And daily excerpts can be made of it and mailed to you using logwatch. I've attached an example.
Finally, don't remove log files unless you know you don't need them anymore, and even then you should move them to archival storage instead, for at least a few years. Many logs get periodically rotated, i.e. after a specific amount of time, the current log file gets moved to logfile.1, previous .1 file becomes .2 and so on. I think that my mailing systems currently have 10 of them or so, but I'll have to check. Probably those things are automatically purged after a set time even.
Point is, I've never removed a log file and my servers' system partitions are still only 5-6GB usually. Until I start running out of disk space, I won't really care. And even then I'd look at cached packages and things like that first. -
cursee171596y@Condor devRant can also be too reddit like at certain occasions.
People gave more ++ to jokes and sarcasm remarks than actual explanation and knowledge sharing content.
@harizrant Condor's above comment explained it well. Logs are not "totally useless". You can only determine their value by looking and analysing. Sure if all your log files were just printing "0000000000.." up to Gb size files, they are indeed useless and can be deleted. But in that case, your team should still find the cause of why the server is logging countless 0 only to the log files.
What has been done is done and in the past. But for future I hope you can learn from this incident.
Imagine it happening on production 😛 and you will be in rough spot.
Related Rants
-
featurenotbug29So I accidentally published my AWS keys to GitHub, stupid me. I realize this the next day. $ git reset $ git ...
-
abhijith050513When you SSH into a machine and then SSH back into yours, you know you are drunk.
-
nickj58today at programming class... professor: today we will be teaching you about vim and using the terminal and s...
When company gave me a SSH I am a noob I have a filezilla what I do is delete all temp files and clear log files
Because the log file size goes 1gb After next day all are looking weird
Senior developer:wtf are you doing yesterday
Me: delete all the tmp files and log files 😂😂
rant
aws
ssh
pre-production