May 02, 2024, 01:45:30 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: How do I clean / free space used by disk or logs in linux server ?  (Read 3424 times)

Offline Noob

  • Linux Noob !
  • *
  • Posts: 10
Can anyone tell me which files are safe to delete in /var partition ?

I want to increase space as it seems it filled up by logs.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: How do I clean / free space used by disk or logs in linux server ?
« Reply #1 on: December 14, 2007, 06:52:03 PM »
usually biggest problem in logs are mysql logs if its a webserver.
You can find it at /var/lib/mysql , that is what I do most of the time. There are many other files but they are not much.. only matter of few MBS.. I never bothered myself to delete them but you can delete.

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: How do I clean / free space used by disk or logs in linux server ?
« Reply #2 on: December 15, 2007, 02:06:10 AM »
Did you create a rule in your syslog tool for that application server ? Also consider enable compression to your logs while using logrotate feature.

Consider backing up those old logrotate archives to your backup media.