N nawas Verified User Joined Jun 25, 2005 Messages 36 Jan 5, 2006 #1 Hi How do you clear/delete log files.
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 25,033 Location California Jan 5, 2006 #2 Generally you can just delete them. However, log files should be managed automatically by your server. Which log files would you like to delete? Jeff
Generally you can just delete them. However, log files should be managed automatically by your server. Which log files would you like to delete? Jeff
jmstacey Verified User Joined Feb 12, 2004 Messages 3,887 Location Colorado Jan 5, 2006 #3 Additionally, the service might need to be restarted to get logging going again if the file was completely deleted. Exim is one example.
Additionally, the service might need to be restarted to get logging going again if the file was completely deleted. Exim is one example.
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 25,033 Location California Jan 6, 2006 #4 Thanks for the reminder. Jeff
N nawas Verified User Joined Jun 25, 2005 Messages 36 Jan 8, 2006 #5 Hi Thanks for the replies. I want to delete the apache logs. And one more questions, files in the /var directory are taking up a lot of space on the server, is it ok to delete the files in here, not the directories, just the files within them.
Hi Thanks for the replies. I want to delete the apache logs. And one more questions, files in the /var directory are taking up a lot of space on the server, is it ok to delete the files in here, not the directories, just the files within them.
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 25,033 Location California Jan 8, 2006 #6 Which apache logs? Which files in /var? Jeff
N n8nu New member Joined Feb 19, 2006 Messages 4 Feb 19, 2006 #7 I would like to have it setup that the log files in /domains/domainname/logs be deleted every 3 months. Is that possible?
I would like to have it setup that the log files in /domains/domainname/logs be deleted every 3 months. Is that possible?
jmstacey Verified User Joined Feb 12, 2004 Messages 3,887 Location Colorado Feb 19, 2006 #8 These are rotated nighly by DirectAdmin now. I haven't heard of any good workarounds...
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 25,033 Location California Feb 19, 2006 #9 If they're managed by logrotate then you can set them up to rotate as often or seldom as you wish. I'm not sure if they are or not, and I'm not looking now. Jeff
If they're managed by logrotate then you can set them up to rotate as often or seldom as you wish. I'm not sure if they are or not, and I'm not looking now. Jeff