![]() |
Server log >2 gig how do I turn logging off? [pls help]
our gallery server log is slowing down due to 2gig+ .com.log files, I need to turn it off and the admin is gone, with my lil knowledge if del the file rebooted and its up and running again
removed the --log command from cron but its still running and getting pretty big and fast so - pls - who can tell me how to turn this loggin off? thanks :thumbsup -Bob |
I use: rm *.*
|
Not sure about turning the logging off, but can't you just roll the log file over to a backup and empty the current one?
:> logfile.log |
Quote:
|
if apache, open up httpd.conf and comment the error_log global or under virtual directory if your server is setup that way...
|
Quote:
|
yea, whereever you see your logfile name and error_log in front of it, comment the biatch and restart the webserver... should stop :)
|
I wouldnt recommend turning off logging. If you ever experience any problems you'll be in the dark. Whether people are siphoning your bandwidth, trying to compromise your site, or theres just something wrong with the web server, you simply will not be able to find out without your logs. You can configure logrotate wich should go in and archive your log files everyonce in a while and start with fresh ones, its usually run by a cron job. Then if you need to you can just go delete the older log files if you like.
|
cat /dev/null > logfile
|
hmm its set in modules on the server so I gotta check which module does that... damn thats gonna takes ages... think ill crontab a RM every day or so...
any other 2 cents? |
Quote:
|
DO NOT REMOVE THE LOG FILE WHILE HTTPD is still running......
If you can't figure it out in httpd, i'd reccomend : 1) Stop apache, remove logfile, symlink from previous log area to /dev/null 2) Set a cron that Stops apache, removes logfile, restarts apache |
Quote:
I know its a luxery problem but we had 10mbps now 20 and its on 20 8 outa 12 hours so basically too low already. Ive checked logs and its all affiliates pushing our galleries, not even movie, just pics. Ive thought bout the crontab but that means stop start apache every day or so, maybe even a reboot, Id rather have logrotate handle that if possible... any ideas? thanks! |
Daily call to a cron
apachectl stop mv current_log date.log.txt apachectl start You'll never even notice it, and you'll get all your logs in nice little piles so you have them if need be.... Delete the really old ones. |
Wait for the admin, it's the best solution :D
|
we delete our logs and run wusage every 6 hours. They are about 1.3GB every 6 hours. :( So I feel your pain. I dont konw how you my admin did it but I can hook you up with a great admin.
HQ |
Quote:
|
Quote:
|
Just comment out the log linein the apache httpd.conf file right?
#lah dwhs.com.log Something like that. |
Quote:
can you hit me up with a 20mpbs p4 price btw? bob AT dutchteencash DOT .com thanks :thumbsup |
bump any other ideas?
|
| All times are GMT -7. The time now is 10:31 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123