Sorry if I asked many questions these past few days... but I think these questions can be helpful for me... and for others VPS newbies!!!
Anyway...
I was reading some posts about "log files managing" on webhostingtalk, and I must say that I'm a little bit confused.
Seems like the principals log file ares are located at these places:
/var/log
/var/log/messages (main server log)
/var/lib/mysql (mysql logs)
/usr/local/apache/logs
/usr/local/apache/domlogs
/etc/httpd/logs (same as above??)
/etc/httpd/domlogs (same as above???)
So...
1 - In /var/log, in addition to "message", there is many other files? Can we delete them all safely? (ex: message2 maillog mailog2 bootlog secure etc...)
2- If we delete a log file, must we restart the system? Or it will be re-created automaticaly?
3- Is ect/httpd/logs the same as /usr/local/apache/logs (only need to delete one)
4- What is the simple way to delete logs automaticaly (say, once every weeks). I have found this: http://httpd.apache.org/docs/1.3/logs.html#rotation, but i'm not really sure what to do...
Is there other thing I must known about this subject?
Thank you very much for your time!


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks