How Do I delete/Clean Syslog? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20) +--- Thread: How Do I delete/Clean Syslog? (/showthread.php?tid=7283) |
How Do I delete/Clean Syslog? - bigskill - 08-19-2020 I have x32 LL installed, fresh install 3mos ago.I have been losing hard drive space. I finally found where it went, SYSLOG is 42GB in size. ./var/log/syslog This is on a 70gb drive. How do I delete or clean this? It will not let me by normal means. Is it safe to just delete it? HOW? Can it be cleaned/recovered? How can I stop this from happening? I tried Bleachbit, but I do not see an option for syslog. Help Please TIA Re: How Do I delete/Clean Syslog? - minesheep - 08-20-2020 To search the source what would be better place to start than logs especially syslog. You can make a copy of your syslog(s) to any location and read it to see whats making it that large. Its just a text file so you can use leafpad on LL4.8 and older and mousepad on LL5.0 (and newer) to open it. It should be safe to remove the compressed logs ending with .gz but I recommended to just move the files so if there is problem they can be moved back to "/var/logs/". If you want to move/delete logs type Code: sudo thunar Re: How Do I delete/Clean Syslog? - bigskill - 08-20-2020 Thanks for replying but maybe you missed it syslog is 42GB in size. There is not enough room on the drive to make a copy. Re: How Do I delete/Clean Syslog? - torreydale - 08-20-2020 [member=6142]bigskill[/member] , Code: truncate -s 0 /var/log/syslog Also use Lite Tweaks instead of Bleachbit to keep your installation tuned. Re: How Do I delete/Clean Syslog? - minesheep - 08-20-2020 (08-20-2020, 04:55 PM)bigskill link Wrote: Thanks for replying but maybe you missed itThat is not normal. You should open it in some way. There are many ways out here just be creative
Re: How Do I delete/Clean Syslog? - Moltke - 08-20-2020 (08-19-2020, 10:08 PM)bigskill link Wrote: I have x32 LL installed, fresh install 3mos ago.I have been losing hard drive space. Is this a server or a regular desktop/laptop pc? I've never had/seen a log file that big in my system. In this article/tutorial they show you how to delete/remove/clean/empty a log file https://www.cyberciti.biz/faq/remove-log-files-in-linux-unix-bsd/ Read here for information on how to manage log files so they stop growing out of control https://www.loggly.com/ultimate-guide/managing-linux-logs/ Another good article on the topic https://www.networkworld.com/article/3428361/how-to-manage-logs-in-linux.html Hope this helps! Re: How Do I delete/Clean Syslog? - bigskill - 08-22-2020 Most of these suggestions are WAY over my head. This is just an old x32 Lenovo laptop used for solitaire and light browsing. not even email. I deleted file using sudo method above. I will keep an eye on it to see if it starts growing, then try reading it. Thank You All. |