GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Server log >2 gig how do I turn logging off? [pls help] (https://gfy.com/showthread.php?t=548822)

DutchTeenCash 12-06-2005 02:29 PM

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

CamRabbit 12-06-2005 02:31 PM

I use: rm *.*

psili 12-06-2005 02:31 PM

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

DutchTeenCash 12-06-2005 02:34 PM

Quote:

Originally Posted by psili
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

its getting >2 gig in one day there must be a way to set up something without setting a cron to del that file every x hrs imho...

naitirps 12-06-2005 02:37 PM

if apache, open up httpd.conf and comment the error_log global or under virtual directory if your server is setup that way...

DutchTeenCash 12-06-2005 02:45 PM

Quote:

Originally Posted by naitirps
if apache, open up httpd.conf and comment the error_log global or under virtual directory if your server is setup that way...

its the dutchteengalleries.com.log can I # that too in httpd.conf?

naitirps 12-06-2005 02:48 PM

yea, whereever you see your logfile name and error_log in front of it, comment the biatch and restart the webserver... should stop :)

drjones 12-06-2005 02:52 PM

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.

jayme_ 12-06-2005 02:55 PM

cat /dev/null > logfile

DutchTeenCash 12-06-2005 02:56 PM

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?

DutchTeenCash 12-06-2005 03:04 PM

Quote:

Originally Posted by drjones
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.

im thought bout that but im no unix guru at all.. I know i can set logrotate to daily or weekly but archiving and start with fresh ones, if you can tell me what the command is id be gratefull forever :)

willysbirthday 12-06-2005 03:06 PM

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

DutchTeenCash 12-06-2005 03:10 PM

Quote:

Originally Posted by willysbirthday
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

thanks I learned that too :)

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!

willysbirthday 12-06-2005 03:12 PM

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.

Basic_man 12-06-2005 03:13 PM

Wait for the admin, it's the best solution :D

High Quality 12-06-2005 03:16 PM

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

DutchTeenCash 12-06-2005 03:20 PM

Quote:

Originally Posted by High Quality
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

same here 2 gig in 7-8 hrs, we need to get either a better admin or a managed box thats 20 and ready to expend

DutchTeenCash 12-06-2005 03:22 PM

Quote:

Originally Posted by willysbirthday
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.

how tricky is this doing this like 2-3 times a day? I mean chances the server wont put apache back online or so...

chaze 12-06-2005 03:22 PM

Just comment out the log linein the apache httpd.conf file right?

#lah dwhs.com.log

Something like that.

DutchTeenCash 12-06-2005 03:24 PM

Quote:

Originally Posted by chaze
Just comment out the log linein the apache httpd.conf file right?

#lah dwhs.com.log

Something like that.

wish it was there, theyve set up the whole server with log config modules there are like 20-30 in the httpd so thatll take ages to find the right one triggering the log...

can you hit me up with a 20mpbs p4 price btw? bob AT dutchteencash DOT .com thanks :thumbsup

DutchTeenCash 12-06-2005 03:37 PM

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